Platform-agnostic library for filesystem operations in Haskell
open sourceBSD-3-Clausefree
directory is the standard Haskell library for working with files and directories portably across Linux, macOS and Windows. Its System.Directory module creates, lists, renames, copies and removes files and directories (including recursive removal), tests whether paths exist, finds executables on the PATH, reads and sets permissions and timestamps, handles symbolic links, and locates the home, temporary and XDG directories. More than 2,000 Hackage packages depend on it directly.
Problems it solves
- create, copy, rename and delete files and directories from Haskell code portably
- find the user's home, temporary or XDG config directory in a Haskell program
- check whether a file exists or find an executable on the PATH in Haskell
Features
- Create, list, rename, copy and remove files and directories
- Recursive and forced removal
- Existence tests and executable lookup on the PATH
- Permissions, timestamps and symbolic links
- Home, temporary, app data and XDG directories
- OsPath interface (System.Directory.OsPath)
Alternatives
The same job
These do what directory does.
- path-io Filesystem operations for Haskell's typed path library
