Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Streaming functions for interacting with the filesystem.
Synopsis
- 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
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
.
FTFile | |
FTFileSym |
symlink to file |
FTDirectory | |
FTDirectorySym |
symlink to a directory |
FTOther |
Instances
Eq FileType Source # | |
Ord FileType Source # | |
Defined in Data.Streaming.Filesystem |
|
Read FileType Source # | |
Show FileType Source # | |