streaming-commons-0.2.3.1: Common lower-level functions needed by various streaming data libraries

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
  - = FTFile
  - | FTFileSym
  - | FTDirectory
  - | FTDirectorySym
  - | FTOther
- getFileType :: FilePath -> IO FileType

# Documentation

data DirStream Source #

openDirStream :: FilePath -> IO DirStream Source #

`openDirStream dir` calls `opendir` to obtain a directory stream for `dir`.

readDirStream :: DirStream -> IO (Maybe FilePath) Source #

closeDirStream :: DirStream -> IO () Source #

`closeDirStream dp` calls `closedir` to close the directory stream `dp`.

data FileType Source #

Constructors

FTFile |
FTFileSym | symlink to file
FTDirectory |
FTDirectorySym | symlink to a directory
FTOther |

#### Instances

Instances details

Read FileType Source # |
Instance details Defined in Data.Streaming.Filesystem Methods readsPrec :: Int -> ReadS FileType Source # readList :: ReadS [FileType] Source # readPrec :: ReadPrec FileType Source # readListPrec :: ReadPrec [FileType] Source #
Show FileType Source # |
Instance details Defined in Data.Streaming.Filesystem Methods showsPrec :: Int -> FileType -> ShowS Source # show :: FileType -> String Source # showList :: [FileType] -> ShowS Source #
Eq FileType Source # |
Instance details Defined in Data.Streaming.Filesystem Methods (==) :: FileType -> FileType -> Bool Source # (/=) :: FileType -> FileType -> Bool Source #
Ord FileType Source # |
Instance details Defined in Data.Streaming.Filesystem Methods compare :: FileType -> FileType -> Ordering Source # (<) :: FileType -> FileType -> Bool Source # (<=) :: FileType -> FileType -> Bool Source # (>) :: FileType -> FileType -> Bool Source # (>=) :: FileType -> FileType -> Bool Source # max :: FileType -> FileType -> FileType Source # min :: FileType -> FileType -> FileType Source #

getFileType :: FilePath -> IO FileType Source #