Accumulates per-directory sizes from a scan result, attributing each file's size to its ancestor directories up to (and including) the target path.
The recursive scan result.
The directory being measured.
The du options (separateDirs / showAll affect attribution).
A map of directory path to accumulated size.
Accumulates per-directory sizes from a scan result, attributing each file's size to its ancestor directories up to (and including) the target path.