streamly-0.8.2: Dataflow programming and declarative concurrency
Copyright(c) 2018 Composewell Technologies
LicenseBSD3
Maintainerstreamly@composewell.com
Stabilitypre-release
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.

Pre-release

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

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

Pre-release

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