childrenRange

fnChildrenRange childrenRange(ArchiveHandle h, string path) @safe

Convenience function to create a children listing range for path.

Example:

auto ro = readOpts().toLow();
auto h = openArchiveRead("/backups", "myarchive", "dar", ro);

// List children of a subdirectory
foreach (entry; childrenRange(h, "docs"))
    writefln("  %s", entry.name);

// Count files in a specific directory
import std.algorithm : count;
auto fileCount = childrenRange(h, "images").count;

Returns a snapshot (eager) forward range over children of path.