Revision 3a78098f11e03b0136e9f4bb3aa587d528f08d3f authored by Asher Preska Steinberg on 09 February 2021, 19:22:11 UTC, committed by Asher Preska Steinberg on 09 February 2021, 19:22:11 UTC
1 parent a3cece3
APS156_tarList.py
import glob
import os
tarList = glob.glob('*.tar.gz')
file = open('APS156_scratch_complete_tars', 'w+')
i = 0
for tar in tarList:
# size = os.stat(tar).st_size
# if size != 0:
tarstr = tar.split('.')
file.write(tarstr[0]+"\n")
i = i+1
file.close()
print(str(i))
Computing file changes ...