Get the cumulative size (in bytes) of a list of globs
(paths)
| 653 | |
| 654 | |
| 655 | def 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 | |
| 664 | def yum_clean(): |