| Safe Haskell | Safe-Inferred |
|---|
Data.Streaming.Filesystem
Description
Streaming functions for interacting with the filesystem.
- data DirStream
- openDirStream :: FilePath -> IO DirStream
- readDirStream :: DirStream -> IO (Maybe FilePath)
- closeDirStream :: DirStream -> IO ()
- data FileType
- = FTFile
- | FTFileSym
- | FTDirectory
- | FTDirectorySym
- | FTOther
- getFileType :: FilePath -> IO FileType
Documentation
data DirStream
openDirStream :: FilePath -> IO DirStream
openDirStream dir calls opendir to obtain a
directory stream for dir.
closeDirStream :: DirStream -> IO ()
closeDirStream dp calls closedir to close
the directory stream dp.
Constructors
| FTFile | |
| FTFileSym | symlink to file |
| FTDirectory | |
| FTDirectorySym | symlink to a directory |
| FTOther |
getFileType :: FilePath -> IO FileTypeSource