/** * Parses the `du -sh` listing. */ /** One entry: how much it takes and where it lies. */ export interface DuEntry { size: string; path: string; } /** Parsed entries and the lines that could not be parsed. */ export interface DuListing { entries: DuEntry[]; unparsed: string[]; } /** * The `du -sh` listing into entries. * * Size and path are split on the first gap only: a directory name may hold * spaces, and splitting on every gap would cut such a name in half and report * a path that does not exist. * * A line whose first column is not a size is du's own complaint about a * directory it could not read — kept as unparsed, because read as an entry it * would claim a path that was never measured. */ export declare function parseDuLines(text: string): DuListing;