filemanip icon indicating copy to clipboard operation
filemanip copied to clipboard

A Haskell library for working with files and directories. Includes code for pattern matching, finding files, modifying file contents, and more.

Results 13 filemanip issues
Sort by recently updated
recently updated
newest added

In the light of issue #14, could in the 21st century we have something better structured than: ```haskell type GlobPattern = String ``` I know, these great 1970s, where one...

Hi, Just wondering how I can disable recursion ? Basically I'm looking for a way to get the opposite of "always", I don't really understand how to create a FindClause...

Hi, I was missing a simple entry point like `find` but which also returns the `FileInfo`. ```haskell -- | Search a directory recursively, with recursion controlled by a -- 'RecursionPredicate'....

**Proposal** I propose we add a monoid instance for `FindClause Bool`, in a fashion similar to `Monoid All` and `Monoid Any`. Here's what I came up with: ```haskell newtype AllClause...

After being edited with `ModifyInPlace` files become read only. ``` ~ λ mkdir test; cd test ~/test λ touch example ~/test λ ls -l -rw-r--r-- 1 rnhmjoj users 0 Sep...

It seems to me that `*` is completely broken for directories when using the `Find` or `GlobPattern` modules, which is very strange to me considering it should be basic functionality...

Hi, seems nit quite right for me. ``` > "a\\b" ~~ "a\\*" False ``` but ``` > "a/b" ~~ "a/*" True ```

https://github.com/bos/filemanip/blame/1ed1659a6459aeb66f4cec588ea1519bb6c26828/System/FilePath/GlobPattern.hs#L127 I haven't looked at it in detail yet, but shouldn't we replace O(n²) nub by e.g. an [ordNub](https://github.com/nh2/haskell-ordnub#ordnub)?