feat(core): a tool to analyse the difference in disk usage between 2 directories
Description
Sometimes we want to know for our external dependencies (or installation programs) where disk usage has increased/decreased between two versions.
Functional specifications
du_diff.py --help
usage: du_diff.py [-h] [--dir1 dir1] [--dir2 dir2] [--files]
[--ignore-size ignore-size]
Analyse the difference in disk usage between the two given directories. By default, it will compare the contents of two directories recursively.
options:
-h, --help show this help message and exit
--dir1 dir1 First directory to compare (the new directory).
--dir2 dir2 Second directory to compare (the previous directory).
--files Report only diff at directory level
--ignore-size ignore-size
Ignore diff less than given MB
Example: du_diff.py --dir1=dir1 --dir2=dir2 [--files] [--ignore-size=1]
Technical specifications
A simple python script traversing the two directories to collect size informations to be analyse afterwards.