yiisoft / yiisoft/files

Avoid going down the tree in findFiles() if there will be no match

Open
#56 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:enhancement
Dominant language
PHP
Stars
37
Forks
18
Avg merge
59m
Merged PRs (30d)
1

Description

For example, if there's vendor/** path excluded, there's no sense in traversing whole vendor directory.

That will likely break backwards compatibility.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the findFiles() entry point and inspect how excluded paths are handled during directory traversal. Confirm the intended behavior for an excluded vendor/** path, review any existing traversal coverage, and ensure the change preserves backward compatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.