public class DirectoryBatch
Bounded directory-enumeration batch produced by DirectoryReader.read(...).
Subdirectory names are collected in folders, and regular file names are collected in fileNames when includeFileNames is enabled on the reader. Aggregate regular file counts, logical byte totals (when includeFileBytes is enabled or provided by OS enumeration) and skipped entries (symbolic links when not followed, Windows reparse points, special files or vanished entries) are reported alongside the exhausted end-of-stream indicator.
import klyn.io
try reader = Path.cwd.openReader():
batch = reader.read(256)
print(batch.folders.size)
print(batch.fileNames.size)| Modifier and Type | Member | Description |
|---|---|---|
| public | bytesbytes as ULong = 0ul |
Sum of logical file sizes in bytes for regular files in this batch when includeFileBytes is enabled (or provided directly by OS enumeration). |
| public | exhaustedexhausted as Boolean = false |
true when the directory stream has reached its end. |
| public | fileNames | Direct regular file names discovered in this batch when includeFileNames is enabled on the owning DirectoryReader. |
| public | filesfiles as ULong = 0ul |
Number of regular file entries counted in this batch. |
| public | folders | Direct subdirectory names discovered in this batch. |
| public | skippedskipped as ULong = 0ul |
Number of excluded symbolic links, Windows reparse points, device nodes, special files or vanished entries in this batch. |