Skip to content

Mac SDK: DirectoryInfo.EnumerateDirectories and DirectoryInfo.EnumerateFiles Method does not handle symbolic link very well #34363

Closed

Description

@bahdahshin

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.

Activity

  1. transferred this issue fromdotnet/coreon Apr 1, 2020
  2. added
    untriaged
    on Apr 1, 2020
  3. Dotnet-GitSync-Bot commented on Apr 1, 2020

    @Dotnet-GitSync-Bot
    Collaborator

    I couldn't figure out the best area label to add to this issue. Please help me learn by adding exactly one area label.

  4. added and removed
    untriaged
    on Apr 23, 2020
  5. added this to the 5.0 milestone on Apr 23, 2020
  6. modified the milestones: 5.0.0, Future on Jun 18, 2020
  7. dotnet-policy-service commented on Dec 19, 2024

    @dotnet-policy-service
    Contributor

    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.

  8. added
    backlog-cleanup-candidate
    on Dec 19, 2024
  9. dotnet-policy-service commented on Jan 2, 2025

    @dotnet-policy-service
    Contributor

    This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

  10. removed this from the Future milestone on Jan 2, 2025
  11. locked and limited conversation to collaborators on Feb 1, 2025
  12. removed
    backlog-cleanup-candidate
    on Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions