MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / get_globs_size

Function get_globs_size

bleachbit/Unix.py:655–661  ·  view source on GitHub ↗

Get the cumulative size (in bytes) of a list of globs

(paths)

Source from the content-addressed store, hash-verified

653
654
655def get_globs_size(paths):
656 """Get the cumulative size (in bytes) of a list of globs"""
657 total_size = 0
658 for path in paths:
659 for p in glob.iglob(path):
660 total_size += FileUtilities.getsize(p)
661 return total_size
662
663
664def yum_clean():

Callers 1

get_apt_sizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected