Re: [Python-ideas] Suggestion: Add shutil.get_dir_size

2017-05-03 Thread Cameron Simpson
On 03May2017 09:13, Ram Rachum wrote: Calling `du` is possible but I prefer to avoid these kinds of solutions. (OS-specific, parsing text output from a third-party program.) Your choice, and fair enough. However I'd point out that "du" is available on all UNIX systems

Re: [Python-ideas] Suggestion: Add shutil.get_dir_size

2017-05-03 Thread Paul Moore
On 3 May 2017 at 06:43, Serhiy Storchaka wrote: > On 02.05.17 22:07, Ram Rachum 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

Re: [Python-ideas] Suggestion: Add shutil.get_dir_size

2017-05-03 Thread Ram Rachum
Calling `du` is possible but I prefer to avoid these kinds of solutions. (OS-specific, parsing text output from a third-party program.) On Wed, May 3, 2017 at 1:57 AM, Cameron Simpson wrote: > On 02May2017 22:07, Ram Rachum wrote: > >> I have a suggestion: Add

Re: [Python-ideas] Suggestion: Add shutil.get_dir_size

2017-05-02 Thread Serhiy Storchaka
On 02.05.17 22:07, Ram Rachum 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. The comprehensive

Re: [Python-ideas] Suggestion: Add shutil.get_dir_size

2017-05-02 Thread Cameron Simpson
On 02May2017 22:07, Ram Rachum 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.

[Python-ideas] Suggestion: Add shutil.get_dir_size

2017-05-02 Thread Ram Rachum
Hi, 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. Cheers, Ram.