Write per-directory reports in the given filesystem tree making arithmetic calculations on file name parts