Helpers & Utils
High-level convenience methods designed to simplify complex I/O patterns. These utilities supplement the core API with practical tools for JSON handling, binary data manipulation, and automated directory management.
Filtered & Recursive Listing
.lsRecursive(path, filter?)
Deep traversal with optional callback filtering.
const tsFiles = __sys__.fs.lsRecursive("ROOT://src", f => f.endsWith(".ts"));JSON Automation
Native JSON serialization using XStringify with safe fallback options.
Returns default instead of throwing if the file is missing or malformed.
Binary & Raw I/O
.readBytes() / .writeBytes()
Bypass text encoding entirely. Works with raw Node Buffer objects.
.readLines() / .readNonEmptyLines()
Synchronous or asynchronous line-by-line reading.
Native Stats & Utilities
Natively compute checksum.
Bytes or human-readable size.
Full directory tree usage.
One-way directory mirror.
Never-throw directory creation.
Conditional write operation.
Identify duplicates via hash.
Verify existence and status.
Master full-text search and glob discovery across your project structure.
