Safe Haskell | None |
---|---|
Language | Haskell2010 |
- getFileStatus :: FilePath -> IO (Maybe FileStatus)
- withCurrentDirectory :: FilePathLike p => p -> IO a -> IO a
- doesDirectoryReallyExist :: FilePath -> IO Bool
- removeFileMayNotExist :: FilePathLike p => p -> IO ()
- xdgCacheDir :: IO (Maybe FilePath)
- osxCacheDir :: IO (Maybe FilePath)
- getDirectoryContents :: FilePath -> IO [FilePath]
- getRecursiveContents :: FilePath -> IO [FilePath]
- getRecursiveContentsFullPath :: FilePath -> IO [FilePath]
Files and directories
getFileStatus :: FilePath -> IO (Maybe FileStatus) Source #
withCurrentDirectory :: FilePathLike p => p -> IO a -> IO a Source #
removeFileMayNotExist :: FilePathLike p => p -> IO () Source #
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
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
.