| Safe Haskell | Safe |
|---|---|
| Language | Haskell98 |
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
- 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 FileType Source