Coder Social home page Coder Social logo

filepattern's Issues

Remove dependency on `extra`?

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.

Add function to delete recursively

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

Add Module based alternative

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?

Symlink treated as directory

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.