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

Streamly.Internal.FileSystem.Dir

Description

 
Synopsis

Streams

read :: MonadIO m => FilePath -> Stream m FilePath Source #

Raw read of a directory.

Pre-release

readFiles :: MonadIO m => FilePath -> Stream m FilePath Source #

Read files only.

Internal

readDirs :: MonadIO m => FilePath -> Stream m FilePath Source #

Read directories only.

Internal

readEither :: MonadIO 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 => 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 => Unfold m FilePath FilePath Source #

Read files only.

Internal

dirReader :: MonadIO m => Unfold m FilePath FilePath Source #

Read directories only. Filter out "." and ".." entries.

Internal

eitherReader :: MonadIO 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 => String -> Stream m String Source #

Deprecated: Please use read instead

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

Deprecated: Please use readEither instead

toFiles :: MonadIO m => FilePath -> Stream m FilePath Source #

Deprecated: Please use readFiles instead

toDirs :: MonadIO m => String -> Stream m String Source #

Deprecated: Please use readDirs instead