System.Directory.Recursive

dir-traverse-0.2.3.0: Simple directory traversal library

Safe Haskell | None
Language | Haskell2010

System.Directory.Recursive

Synopsis

- getDirRecursive :: FilePath -> IO [FilePath]
- getSubdirsRecursive :: FilePath -> IO [FilePath]
- getFilesRecursive :: FilePath -> IO [FilePath]
- getDirFiltered :: (FilePath -> IO Bool) -> FilePath -> IO [FilePath]

# Documentation

getDirRecursive :: FilePath -> IO [FilePath] #

Recursively get all files and subdirectories in the given directory.

getSubdirsRecursive :: FilePath -> IO [FilePath] #

Recursively get all subdirectories in the given directory.

Since: 0.2.1.0

getFilesRecursive :: FilePath -> IO [FilePath] #

Recursively get all files in the given directory.

Since: 0.2.3.0

getDirFiltered #

Arguments

:: (FilePath -> IO Bool) | Filepath filter
-> FilePath |
-> IO [FilePath] |

Recursively get all files and subdirectories in the given directory that satisfy the given predicate. Note that the content of subdirectories not matching the filter is ignored. In particular, that means something like `getDirFiltered doesFileExist` will not recursively return all files.

Since: 0.2.2.0