-
Notifications
You must be signed in to change notification settings - Fork 49
Closed
Description
When using PathSpec.match_tree, If there is a broken symlink encountered, we get unhandled exception. It's here:
I think you could fix it with os.lstat instead, but that's backwards incompat change.
Perhaps iter_tree could have an option to not follow symlinks? You could follow the example of os.walk, which accepts a followlinks keyword arg, and also an onerror callback which can be used to handle problems such as permission errors when stat each file.
Metadata
Metadata
Assignees
Labels
No labels