Package Info

ghc-pathwalk


Path walking utilities for Haskell programs


Development/Libraries/Haskell

"System.Directory.PathWalk" is an implementation of Python's excellent os.walk function. Given a root directory, it recursively scans all subdirectories, calling a callback with directories and files it finds. Importantly, it calls the callback as soon as it finishes scanning each directory to allow the caller to begin processing results immediately.

Maximum memory usage is O(N+M) where N is the depth of the tree and M is the maximum number of entries in a particular directory.

> import System.Directory.PathWalk > > pathWalk "some/directory" $ root dirs files -> do > forM_ files $ file -> > when (".hs" isSuffixOf file) $ do > putStrLn $ joinPath [root, file].


License: MIT
URL: https://hackage.haskell.org/package/pathwalk

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.3.1.2-bp150.2.4 info GA Release 2018-08-01 15
  • AArch64
  • ghc-pathwalk
  • ghc-pathwalk-devel
0.3.1.2-bp150.2.6 info GA Release 2018-07-30 15
  • ppc64le
  • x86-64
  • ghc-pathwalk
  • ghc-pathwalk-devel