# directory

> Platform-agnostic library for filesystem operations in Haskell

Source: https://talira.ai/catalog/directory-fezs5ryy
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem)
- Platforms: linux, macos, windows[^3]
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]

directory is the standard [Haskell](https://talira.ai/catalog/haskell-jjq1dx6f.md) 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.

## Links

- GitHub: https://github.com/haskell/directory
- Docs: https://hackage.haskell.org/package/directory

## 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)

## Trust

Overall: 0.37 out of 1.
Signals: maintenance 0.61, adoption 0.36, momentum 0.05, community 0.81, backing 0.00, extensibility 0.00.

- last commit 21 days ago
- 2 commits in the last 90 days
- latest release v1.3.11.0 6 months ago
- 65 GitHub stars
- 103 contributors

## Alternatives

- [path-io](https://talira.ai/catalog/path-io-cd6v9kt6.md): Filesystem operations for Haskell's typed path library

## Sources

[^1]: https://github.com/haskell/directory/blob/master/LICENSE (checked 25 Nov 2026)
[^2]: https://github.com/haskell/directory/blob/master/directory.cabal (checked 25 Nov 2026)
[^3]: https://hackage.haskell.org/package/directory (checked 25 Nov 2026)
