hpath-0.5.9: Support for well-typed paths

Safe HaskellNone
LanguageHaskell2010

System.Posix.Directory.Traversals

Synopsis

Documentation

allDirectoryContents :: RawFilePath -> IO [RawFilePath] Source

Get all files from a directory and its subdirectories.

Upon entering a directory, allDirectoryContents will get all entries strictly. However the returned list is lazy in that directories will only be accessed on demand.

allDirectoryContents' :: RawFilePath -> IO [RawFilePath] Source

Get all files from a directory and its subdirectories strictly.

traverseDirectory :: (s -> RawFilePath -> IO s) -> s -> RawFilePath -> IO s Source

Recursively apply the action to the parent directory and all files/subdirectories.

This function allows for memory-efficient traversals.

openFd :: RawFilePath -> OpenMode -> [Flags] -> Maybe FileMode -> IO Fd Source

Open and optionally create this file. See Files for information on how to use the FileMode type.

realpath :: RawFilePath -> IO RawFilePath Source

return the canonicalized absolute pathname

like canonicalizePath, but uses realpath(3)