Streamly.Internal.FileSystem.Dir
Deprecated: Please use Streamly.Internal.FileSystem.DirIO instead.
Streams
read :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath Source #
Raw read of a directory.
Pre-release
readFiles :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath Source #
Read files only.
Internal
readDirs :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath Source #
Read directories only.
Internal
readEither :: (MonadIO m, MonadCatch m) => FilePath -> Stream m (Either FilePath FilePath) Source #
Read directories as Left and files as Right. Filter out "." and ".." entries. The output contains the names of the directories and files.
Pre-release
readEitherPaths :: (MonadIO m, MonadCatch m) => FilePath -> Stream m (Either FilePath FilePath) Source #
Like readEither
but prefix the names of the files and directories with
the supplied directory path.
Unfolds
Use the more convenient stream APIs instead of unfolds where possible.
fileReader :: (MonadIO m, MonadCatch m) => Unfold m FilePath FilePath Source #
Read files only.
Internal
dirReader :: (MonadIO m, MonadCatch m) => Unfold m FilePath FilePath Source #
Read directories only. Filter out "." and ".." entries.
Internal
eitherReader :: (MonadIO m, MonadCatch m) => Unfold m FilePath (Either FilePath FilePath) Source #
Read directories as Left and files as Right. Filter out "." and ".." entries.
Internal
eitherReaderPaths :: (MonadIO m, MonadCatch m) => Unfold m FilePath (Either FilePath FilePath) Source #