Comments (7)
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.
from filepattern.
@andreasabel 0.1.3 now released with this fix
from filepattern.
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
The operation doesFileExist returns True if the argument file exists and is not a directory, and False otherwise.
from filepattern.
Since if doesExist && isFile == Just False then pure True
isn't working for symlinks, we need to check doesDirectoryExist
anyway, thus can get rid of the doesExist
optimization altogether. Implemented in:
from filepattern.
Ping @ndmitchell.
from filepattern.
Thanks for merging! Please ping me when you release, so I can depend on the latest version.
from filepattern.
Thanks, published https://hackage.haskell.org/package/fix-whitespace-0.0.10.
from filepattern.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filepattern.