ndmitchell / filepattern Goto Github PK
View Code? Open in Web Editor NEWA file path matching library
License: Other
A file path matching library
License: Other
It would be nice if filepattern
only depended on boot libraries. Is there an appetite for removing the dependency on extra
? I think all the places it's used can be replaced with non-extra
functions or inlined.
Should have one that deletes recursively as normal, and one that deletes through read-only files too.
Need to think what i do about directories.
Required for Shake
Seemingly matching on module names, with conversion to/from . Separators. Perhaps I just need an alternative module where you pick the split character? Or work on lists of strings rather than / separated ones?
I think it's something worth mentioning in description
http://hackage.haskell.org/package/Glob
(I found it surprising that glob in readme is Npm package)
This is
Reproducer in filepattern-0.1.2
:
$ mkdir dir
$ mkdir dir/a
$ mkdir dir/b
$ touch dir/a/file
$ ln -s dir/a/file dir/b/file
$ tree
.
└── dir
├── a
│ └── file
└── b
└── file -> dir/a/file
$ ghci
GHCi, version 9.2.3: https://www.haskell.org/ghc/ :? for help
ghci> :m + System.FilePattern.Directory
ghci> getDirectoryFiles "." ["**"]
*** Exception: ./dir/b/file/: getDirectoryContents:openDirStream: does not exist (No such file or directory)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.