darcs-2.14.3: a distributed, interactive, smart revision control system

Safe HaskellNone
LanguageHaskell2010

Darcs.Util.File

Contents

Synopsis

Files and directories

OS-dependent special directories

xdgCacheDir :: IO (Maybe FilePath) Source #

xdgCacheDir returns the $XDG_CACHE_HOME environment variable, or ~/.cache if undefined. See the FreeDesktop specification: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

osxCacheDir :: IO (Maybe FilePath) Source #

osxCacheDir assumes ~LibraryCaches/ exists.

getDirectoryContents :: FilePath -> IO [FilePath] #

Similar to listDirectory, but always includes the special entries (. and ..). (This applies to Windows as well.)

The operation may fail with the same exceptions as listDirectory.

getRecursiveContents :: FilePath -> IO [FilePath] Source #

getRecursiveContents returns all files under topdir that aren't directories.

getRecursiveContentsFullPath :: FilePath -> IO [FilePath] Source #

getRecursiveContentsFullPath returns all files under topdir that aren't directories. Unlike getRecursiveContents this function returns the full path.