[Python-ideas] Suggestion: Add shutil.get_dir_size

Cameron Simpson cs at zip.com.au
Tue May 2 18:57:33 EDT 2017

On 02May2017 22:07, Ram Rachum <ram at rachum.com> wrote:
>I have a suggestion: Add a function shutil.get_dir_size that gets the size
>of a directory, including all the items inside it recursively. I currently
>need this functionality and it looks like I'll have to write my own
>function for it.

Feels like a rather niche function. Had you considered just calling "du" via 
subprocess and reading the number it returns?

Cameron Simpson <cs at zip.com.au>

More information about the Python-ideas mailing list