dirsizes
A python function which compute the size of directories recursively and pretty print the result using tabulate
tested on python 3.6
Usage
import dirSizes
dirSizes.getDirsSizes(
"/your/root/dir",
sizeUnit="g",
numberOfResultToDisplay=100,
convertRootDirToAbsolutePath=True,
numbersAfterDecimal=1,
filterDirInfoList=lambda x: x.size >= dirSizes.sizeToInt("g", 1),
debug=True
)
# filterDirInfoList parameter is excpeted to be a function taking _DirInfo object as input and returning True or False