directory

Platform-agnostic library for filesystem operations

Latest on Hackage:1.3.6.1

See all snapshots directory appears in

BSD-3-Clause licensed
Maintained by libraries@haskell.org

Module documentation for 1.2.2.0

This version can be pinned in stack with:directory-1.2.2.0@sha256:39e9f1d7504f98bb7f1f9563607ff53557662dd086da1be75af26b14d2ec00b1,2376

directory Hackage Build Status

Documentation can be found on Hackage.

Building from Git repository

When building this package directly from the Git repository, one must run autoreconf -i to generate the configure script needed by cabal configure. This requires Autoconf to be installed.

autoreconf -i
cabal install

There is no need to run the configure script manually however, as cabal configure does that automatically.

Changes

Changelog for the directory package

1.2.2.0 (Mar 2015)

  • Bundled with GHC 7.10.1

  • Make getModificationTime support sub-second resolution on Windows

  • Fix silent failure in createDirectoryIfMissing

  • Replace throw by better defined throwIOs

  • #17: Avoid stack overflow in getDirectoryContents

  • #14: Expose findExecutables

  • #15: removeDirectoryRecursive no longer follows symlinks under any circumstances

  • #9: Allow trailing path separators in getPermissions on Windows

  • #8: renameFile now always throws the correct error type (InappropriateType) when the destination is a directory, as long as the filesystem is not being modified concurrently

  • Add makeAbsolute, which should be preferred over canonicalizePath unless one requires symbolic links to be resolved

1.2.1.0 (Mar 2014)

  • Bundled with GHC 7.8.1

  • Add support for sub-second precision in getModificationTime when linked against unix>=2.6.0.0

  • Fix createDirectoryIfMissing _ "." in C:\ on Windows

  • Remove support for NHC98 compiler

  • Update package to cabal-version >= 1.10 format

  • Enhance Haddock documentation for doesDirectoryExist and canonicalizePath

  • Fix findExecutable to check that file permissions indicate executable

  • New convenience functions findFiles and findFilesWith