-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
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
Symlink treated as directory #5
Comments
Relevant code: filepattern/src/System/FilePattern/Directory.hs Lines 94 to 101 in 1fe716c
In
we get isFile == Just False for a symlink, which is then treated as directory.The docs for doesFileExist are misleading (outright wrong):https://hackage.haskell.org/package/directory-1.3.7.1/docs/System-Directory.html#v:doesFileExist
|
Since |
Ping @ndmitchell. |
Thanks for the diff @andreasabel - unfortunately you've caught me as I'm travelling and otherwise unavailable. Hopefully will take a proper look at this tomorrow. |
Fix #5 by removing doesExist optimisation in getDirectoryFiles
Thanks for merging! Please ping me when you release, so I can depend on the latest version. |
@andreasabel 0.1.3 now released with this fix |
Thanks, published https://hackage.haskell.org/package/fix-whitespace-0.0.10. |
This is
Reproducer in
filepattern-0.1.2
:The text was updated successfully, but these errors were encountered: