|
|
|
@ -632,7 +632,10 @@ def checkFileName(filename): |
|
|
|
|
def getDirSize(filePath, size=0): |
|
|
|
|
for root, dirs, files in os.walk(filePath): |
|
|
|
|
for f in files: |
|
|
|
|
size += os.path.getsize(os.path.join(root, f)) |
|
|
|
|
try: |
|
|
|
|
size += os.path.getsize(os.path.join(root, f)) |
|
|
|
|
except Exception as e: |
|
|
|
|
pass |
|
|
|
|
# print(f) |
|
|
|
|
return size |
|
|
|
|
|
|
|
|
|