Options controlling the behavior of directory read.
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..
import qualified Streamly.FileSystem.DirIO as Dir- 1 type
- 6 values
- Packagestreamly-core-0.3.1
- Exports7
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceDirIO.hs
Configuration
5 declarationsControl how symbolic links are handled when determining the type of a directory entry.
If set to True, symbolic links are resolved before classification. This means a symlink pointing to a directory will be treated as a directory, and a symlink pointing to a file will be treated as a non-directory.
If set to False, all symbolic links are classified as non-directories, without attempting to resolve their targets.
Enabling resolution may cause additional errors to occur due to insufficient permissions, broken links, or symlink loops. Such errors can be ignored or handled using the appropriate options.
The default is False.
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 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 declarationsRaw read of a directory.
Pre-release
Read directories as Left and files as Right. Filter out "." and ".." entries. The output contains the names of the directories and files.
Pre-release