Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.Streaming.Filesystem
Description
Streaming functions for interacting with the filesystem.
Synopsis
- data DirStream
- openDirStream :: FilePath -> IO DirStream
- readDirStream :: DirStream -> IO (Maybe FilePath)
- closeDirStream :: DirStream -> IO ()
- data FileType
- getFileType :: FilePath -> IO FileType
Documentation
openDirStream :: FilePath -> IO DirStream Source #
openDirStream dir
calls opendir
to obtain a
directory stream for dir
.
closeDirStream :: DirStream -> IO () Source #
closeDirStream dp
calls closedir
to close
the directory stream dp
.
Constructors
FTFile | |
FTFileSym | symlink to file |
FTDirectory | |
FTDirectorySym | symlink to a directory |
FTOther |
Instances
Read FileType Source # | |
Show FileType Source # | |
Eq FileType Source # | |
Ord FileType Source # | |
Defined in Data.Streaming.Filesystem |