Skip to content

Added WithNoFollow

Compare
Choose a tag to compare
@bmatcuk bmatcuk released this 05 Jan 16:01
· 18 commits to master since this release
v4.6.0
465a339

Added a WithNoFollow option for Glob, GlobWalk, and FilepathGlob that will cause doublestar to not follow symlinks. However, note that there is a caveat due to io/fs limitations: if the pattern mentions a symlink before any meta characters, those symlinks will be followed. For example: path/to/symlink/* will follow the symlink, assuming it is valid and links to a directory. path/** and path/*/symlink/* will not follow the symlink.