streamly-core-0.2.2: Streaming, parsers, arrays, serialization and more
Copyright(c) 2018 Composewell Technologies
LicenseBSD3
Maintainerstreamly@composewell.com
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

Streamly.Internal.FileSystem.Dir

Description

 
Synopsis

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

Deprecated

toStream :: (MonadIO m, MonadCatch m) => String -> Stream m String Source #

Deprecated: Please use read instead

toEither :: (MonadIO m, MonadCatch m) => FilePath -> Stream m (Either FilePath FilePath) Source #

Deprecated: Please use readEither instead

toFiles :: (MonadIO m, MonadCatch m) => FilePath -> Stream m FilePath Source #

Deprecated: Please use readFiles instead

toDirs :: (MonadIO m, MonadCatch m) => String -> Stream m String Source #

Deprecated: Please use readDirs instead