[rfc] Introduce allow broken symlinks for walk builder #3132
-
Context: Hi, Our team uses ignore crate's walk builder to traverse directories to build a packages that we upload. When traversing directories, we do so with the follow links options to resolve symlinks. Proposed changes: introduce a follow_valid_links option, where we only follow links when valid. Starting a discussion to see if this seems like an ok addition to the crate, if so will follow up with a pr :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm pretty sure this is already possible with the current API. You should just get an error, and then you can skip or log it or whatever. If this isn't working, please provide an MRE. |
Beta Was this translation helpful? Give feedback.
I think for this niche of a use case, if you can get what you want with an extra stat call, then that's what you should do.