streamly-0.7.3: Beautiful Streaming, Concurrent and Reactive Composition
Copyright(c) 2018 Composewell Technologies
LicenseBSD3
Maintainerstreamly@composewell.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Streamly.Internal.FileSystem.Dir

Description

 
Synopsis

Read from Directory

readFiles :: MonadIO m => Unfold m String String Source #

Read files only.

Internal

readDirs :: MonadIO m => Unfold m String String Source #

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

Internal

readEither :: MonadIO m => Unfold m String (Either String String) Source #

Read directories as Left and files as Right. Filter out "." and ".." entries.

Internal

toStream :: (IsStream t, MonadIO m) => String -> t m String Source #

Raw read of a directory.

Internal

toEither :: (IsStream t, MonadIO m) => String -> t m (Either String String) Source #

Read directories as Left and files as Right. Filter out "." and ".." entries.

Internal

toFiles :: (IsStream t, MonadIO m) => String -> t m String Source #

Read files only.

Internal

toDirs :: (IsStream t, MonadIO m) => String -> t m String Source #

Read directories only.

Internal