-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Mac SDK: DirectoryInfo.EnumerateDirectories and DirectoryInfo.EnumerateFiles Method does not handle symbolic link very well #34363
Comments
Have you got any kind of stack trace for this? |
I couldn't figure out the best area label to add to this issue. Please help me learn by adding exactly one area label. |
Area Owners |
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process. This process is part of our issue cleanup automation. |
This issue will now be closed since it had been marked |
Issue Title
Mac SDK: DirectoryInfo.EnumerateDirectories Method does not handle symbolic link very well
General
I made a recursive call to DirectoryInfo.EnumerateDirectories to get subdirectories and files.
It works on Windows 10 and Ubuntu 18.04. However, it crashes on Mac OS High Sierra 10.13.6. After further investigation, it seems to be caught in an infinite loop when it detects a symbolic link.
I tried to replicate the issue on Windows 10 and the code seems to ignore them. I haven't tested Ubuntu yet.
If the expectation is to allow the method to be consistent in both Mac and Windows, I think this should be considered a bug.
The text was updated successfully, but these errors were encountered: