Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug relating to use of relative paths in CACHE #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aomarks
Copy link

@aomarks aomarks commented Mar 25, 2022

The CACHE object is used to remember whether a path was a directory or not across glob() calls. Previously, this cache was keyed by the relative path of the file (i.e. the basename).

This can result in missing results (not descending into a directory because it was incorrectly thought to be a file), or an exception (attempting to descend into a file because it was thought to be a directory).

Now, the CACHE object is instead keyed by the full path, instead of the relative path.

The CACHE object is used to remember whether a path was a directory or not
across glob() calls. Previously, this cache was keyed by the relative path
of the file (i.e. the basename).

This can result in missing results (not descending into a directory because
it was incorrectly thought to be a file), or an exception (attempting to
descend into a file because it was thought to be a directory).

Now, the CACHE object is instead keyed by the full path, instead of the
relative path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant