We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
currently tiny-glob does not find files in symlinked directories
sample:
#!/bin/bash mkdir dir-1 touch dir-1/file-1 ln -s dir-1 dir-1-linked # run tiny-glob node -e "console.log(require('tiny-glob/sync.js')('dir*/**').join('\n'))" # actual result dir-1/file-1 # expected result dir-1/file-1 dir-1-linked/file-1
the problem should be
if (!stats.isDirectory()) {
which does not detect symlinked directories where stats.isSymbolicLink() == true
stats.isSymbolicLink() == true
fs.realpathSync(path) can be used to fully resolve the link target but that returns the absolute path ....
fs.realpathSync(path)
other glob tools have this feature normally off and only enabled with a follow: true option one reason: circular symlinks give infinite recursion
follow: true
The text was updated successfully, but these errors were encountered:
Thank you! Would you mind doing a PR for this?
Sorry, something went wrong.
No branches or pull requests
currently tiny-glob does not find files in symlinked directories
sample:
the problem should be
which does not detect symlinked directories
where
stats.isSymbolicLink() == true
fs.realpathSync(path)
can be used to fully resolve the link targetbut that returns the absolute path ....
other glob tools have this feature normally off
and only enabled with a
follow: true
optionone reason: circular symlinks give infinite recursion
The text was updated successfully, but these errors were encountered: