Calculate disk usage of given directory
Compatible with Python 2 and Python 3.
To list size of all files within the directory tmp, enter
$ python get_disk_usage.py --mnt /tmp
-
Add disk_usage.py file to
PYTHONPATH
$ export PYTHONPATH=$PYTHONPATH:/path/to/disk_usage.py -
Run unit tests
$ python test_disk_usage.py
NOTE: System level testing has been executed with python 2.7 and python 3.6.3