Minimal read without any metadata.
Modulestreamly-core-0.3.1Haskell2010
Streamly.Internal.FileSystem.Posix.ReadDir
- 1 type
- 12 values
- Packagestreamly-core-0.3.1
- Exports13
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceReadDir.hsc
Read with essential metadata. The scan takes the parent dir, the child name, the child metadata and produces an output. The scan can do filtering, formatting of the output, colorizing the output etc.
The options are to ignore errors encountered when reading a path, turn the errors into a nil stream instead.
Read with full metadata.
The CString must be pinned.
closeDirStream dp calls closedir to close
the directory stream dp.
This function may not traverse all the directories supplied and it may traverse the directories recursively. Left contains those directories that were not traversed by this function, these my be the directories that were supplied as input as well as newly discovered directories during traversal. To traverse the entire tree we have to iterate this function on the Left output.
Right is a buffer containing directories and files separated by newlines.
Read directories as Left and files as Right. Filter out "." and ".." entries.
Internal