directory-ospath-streaming-0.2.1: Stream directory entries in constant memory in vanilla IO
Copyright(c) Sergey Vinokurov 2024
LicenseApache-2.0 (see LICENSE)
Maintainerserg.foo@gmail.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Directory.OsPath.Streaming.Internal.Raw

Description

Streaming functions for interacting with the filesystem.

These do the basic job of reading directory entries but care must be taken to not close these streams more than once.

Synopsis

Documentation

data RawDirStream Source #

Abstract handle to directory contents.

Not thread safe and shouldn't be closed more than once.

Constructors

RawDirStream !DirStream !OsPath 

closeRawDirStream :: RawDirStream -> IO () Source #

Deallocate directory handle. It’s not safe to call multiple times on the same handle.

newtype DirReadCache Source #

Constructors

DirReadCache ()