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

WrapCachedDir does not work correctly with case-insensitive filesystems #560

Open
Omniflux opened this issue Jan 12, 2023 · 0 comments
Open

Comments

@Omniflux
Copy link

WrapCachedDir does not work correctly with case-insensitive filesystems.

Should be documented or fixed...

Discovered while implementing fs.wrapcifs (Python 3.11+ only)

>>> from fs.osfs import OSFS
>>> from fs.wrap import WrapCachedDir

>>> e = OSFS('E:/')
>>> e.getmeta()['case_insensitive']
True
>>> e.isdir('Temp')
True
>>> e.isdir('temp')
True

>>> w = WrapCachedDir(e)
>>> w.getmeta()['case_insensitive']
True
>>> w.isdir('Temp')
True
>>> w.isdir('temp')
False
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

No branches or pull requests

1 participant