HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulestreamly-core-0.3.1Haskell2010

Streamly.FileSystem.DirIO

High performance and streaming APIs for reading directories.

File system paths are specified using the Streamly.FileSystem.Path.Path type. If you want to convert between String or FilePath and Path use Streamly.FileSystem.Path.fromString_, Streamly.FileSystem.Path.toString from the Streamly.FileSystem.Path module..

Example1 expression
import qualified Streamly.FileSystem.DirIO as Dir
  • 1 type
  • 6 values

Configuration

5 declarations
datadata ReadOptions
#

Options controlling the behavior of directory read.

When the followSymlinks option is enabled and a directory entry is a symbolic link, we resolve it to determine the type of the symlink target. This option controls the behavior when encountering broken symlink errors during resolution.

When set to True, broken symlink errors are ignored, and the type of the entry is reported as not a directory. When set to False, the directory read operation fails with an error.

The default is True.

On Windows this option has no effect as of now, symlinks are not followed to determine the type.

When the followSymlinks option is enabled and a directory entry is a symbolic link, we resolve it to determine the type of the symlink target. This option controls the behavior when encountering symlink loop errors during resolution.

When set to True, symlink loop errors are ignored, and the type of the entry is reported as not a directory. When set to False, the directory read operation fails with an error.

The default is True.

On Windows this option has no effect as of now, symlinks are not followed to determine the type.

When the followSymlinks option is enabled and a directory entry is a symbolic link, we resolve it to determine the type of the symlink target. This option controls the behavior when encountering permission errors during resolution.

When set to True, any permission errors are ignored, and the type of the entry is reported as not a directory. When set to False, the directory read operation fails with an error.

The default is True.

On Windows this option has no effect as of now, symlinks are not followed to determine the type.

Streams

2 declarations