pipes-files-0.1.1: Fast traversal of directory trees using pipes

Safe HaskellNone
LanguageHaskell2010

Pipes.Files.Directory

Synopsis

Documentation

type CDir = () Source

type CDirent = () Source

openDirStream :: RawFilePath -> IO DirStream Source

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

data Step s o r Source

Constructors

Emit s o 
Skip s 
Stop r 

Instances

Functor (Step s o) 

data Stream o m r Source

Constructors

forall s . Stream (s -> m (Step s o r)) (m s) 

readDirStream :: DirStream -> Ptr CDirent -> IO (RawFilePath, CUInt) Source

readDirStream dp calls readdir to obtain the next directory entry (struct dirent) for the open directory stream dp, and returns the d_name member of that structure.

getStat :: Maybe Bool -> FileEntry f -> IO (Maybe (FileStatus, FileEntry f)) Source

Get the current status for the file. If the status being requested is already cached in the entry information, simply return it from there.

closeDirStream :: DirStream -> IO () Source

closeDirStream dp calls closedir to close the directory stream dp.