Python: Calculate the size of a directory and its sub-directories Reply Here is how to calculate the size of a directory and its sub-directories: