glob: Inconsistent behavior with symlinks
S: triage
Hey, so I'm using the following setup:
```
flags = NEGATE | DOTGLOB | EXTGLOB | GLOBSTAR | BRACE | SPLIT | NEGATEALL | GLOBTILDE | NODOTDIR
matches = [
match for match in glob(pattern, flags=flags)
# rest of code
]
```
I know that when using the pattern '**', it does not follow symlinks by default. The problem is that the symlink is completely missing in the results like it doesn't exist. It would be nice to have the option to glob without following symlinks at all and treating them as a path to a normal file (like the default behavior of `find` command which includes symlinks in the results but doesn't resolve or follow them by default).
关闭于 2024-09-24 7 条评论