diff options
author | Britney Fransen <brfransen@gmail.com> | 2025-02-28 03:51:46 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2025-02-28 03:51:46 (GMT) |
commit | 6b1d5531304f4f87a78df9ab8661eb565145bf49 (patch) | |
tree | be812132e0fca2162b89b5c068dcd885ab6de032 /linhes/linhes-system/empty_storage_groups.py | |
parent | aeb7b5c73176783ff6f08144549db521472c27a9 (diff) | |
download | linhes_pkgbuild-6b1d5531304f4f87a78df9ab8661eb565145bf49.zip linhes_pkgbuild-6b1d5531304f4f87a78df9ab8661eb565145bf49.tar.gz linhes_pkgbuild-6b1d5531304f4f87a78df9ab8661eb565145bf49.tar.bz2 |
linhes-system: balance_storage_groups.py empty_storage_groups.py: change glob1 to glob
Diffstat (limited to 'linhes/linhes-system/empty_storage_groups.py')
-rwxr-xr-x | linhes/linhes-system/empty_storage_groups.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linhes/linhes-system/empty_storage_groups.py b/linhes/linhes-system/empty_storage_groups.py index 708c118..c181242 100755 --- a/linhes/linhes-system/empty_storage_groups.py +++ b/linhes/linhes-system/empty_storage_groups.py @@ -101,7 +101,7 @@ if __name__ == '__main__': print(" " + directory + " - Not Mounted") continue # Check if SG has data files to move - if len(glob.glob1(directory,"*.ts")) or len(glob.glob1(directory,"*.mpg")) or len(glob.glob1(directory,"*.nuv")) or len(glob.glob1(directory,"*.jpg")): + if len(glob.glob(directory + "*.ts")) or len(glob.glob(directory + "*.mpg")) or len(glob.glob(directory + "*.nuv")) or len(glob.glob(directory + "*.jpg")): freePcent = getFreePercentForDir(directory) freeSize = getFreeSpaceForDir(directory) SGDIRSdata.append([directory, freePcent, freeSize]) @@ -114,7 +114,7 @@ if __name__ == '__main__': sys.exit(0) # Exit if no SGs with data found - if SGcnt is 0: + if SGcnt == 0: print("\n'" + SGgrp + "' Storage Group directories have no files to move. Exiting.") sys.exit(0) |