On 3 May 2017 at 06:43, Serhiy Storchaka <storch...@gmail.com> 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 it looks like I'll have to write
>> my own function for it.
>
>
> The comprehensive implementation should take into account hard links, mount
> points, variable block sizes, sparse files, transparent files and blocks
> compression, file tails packing, blocks deduplication, additional file
> streams, file versioning, and many many other FS specific features. If you
> implement a module providing this feature, publish it on PyPI and prove its
> usefulness for common Python user, it may be considered for inclusion in the
> Python standard library.

+1 I would be interested in a pure-Python version of "du", but would
expect to see it as a 3rd party module in the first instance (at least
until all of the bugs have been thrashed out) rather than being
immediately proposed for the stdlib.

Paul
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to