Safe Haskell | None |
---|---|
Language | Haskell2010 |
- getDirectoryContents :: RawFilePath -> IO [(DirType, RawFilePath)]
- allDirectoryContents :: RawFilePath -> IO [RawFilePath]
- allDirectoryContents' :: RawFilePath -> IO [RawFilePath]
- traverseDirectory :: (s -> RawFilePath -> IO s) -> s -> RawFilePath -> IO s
- readDirEnt :: DirStream -> IO (DirType, RawFilePath)
- packDirStream :: Ptr CDir -> DirStream
- unpackDirStream :: DirStream -> Ptr CDir
- realpath :: RawFilePath -> IO RawFilePath
Documentation
getDirectoryContents :: RawFilePath -> IO [(DirType, RawFilePath)] Source #
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.
readDirEnt :: DirStream -> IO (DirType, RawFilePath) Source #
packDirStream :: Ptr CDir -> DirStream Source #
unpackDirStream :: DirStream -> Ptr CDir Source #
realpath :: RawFilePath -> IO RawFilePath Source #
return the canonicalized absolute pathname
like canonicalizePath, but uses realpath(3)