Directories, derived: a store has objects and no directories, so a directory exists where an object lies below it, and its names are the first segments of the paths below it. A name that is an object and also the first segment of other paths is shown as a file and the other paths are noticed. The marker objects of a policy that keeps empty directories keep a directory but are not names in it.
import { childrenOf } from"./derive.ts";
// childrenOf(prefix, stats, policy): the names below a prefix, in order, whether the directory exists, and what was noticed
typeChildren= {
/** Whether the directory exists: an object lies below it, a marker included. */readonlyexists:boolean;
/** The names, in the order of their code points. */readonlyentries:readonlyDirEntry[];
/** What was noticed. */readonlynotes:readonlystring[];
};
typeChildren= {
/** Whether the directory exists: an object lies below it, a marker included. */readonlyexists:boolean;
/** The names, in the order of their code points. */readonlyentries:readonlyDirEntry[];
/** What was noticed. */readonlynotes:readonlystring[];
};