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

FileMangager.enumerator(at:) stops enumerating after hitting path with more than 260 characters on Windows #5099

Open
ahoppen opened this issue Oct 10, 2024 · 1 comment
Labels

Comments

@ahoppen
Copy link
Member

ahoppen commented Oct 10, 2024

When enumerating through a directory using FileManager.enumerator(at:) and one of the paths in that directory exceeds Window’s maximum path length of 260 characters, the enumerator silently stops. I’m not sure what I would expect but I think I would expect it to maybe skip the files that exceed the path length, not to stop enumeration altogether.

@jakepetroules
Copy link
Contributor

Also, paths greater than 260 characters are allowed when long path support is enabled, and I think PathRelativePathTo has bugs which cause it to work improperly with long paths, so we should probably be using a different API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants