File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,11 @@ def check_dir_size(path):
50
50
path = os .path .expanduser (path )
51
51
52
52
if not os .path .exists (path ):
53
- print (f "{ path } : missing OK" )
53
+ print ("{path}: missing OK" . format ( ** locals ()) )
54
54
return True
55
55
56
56
size_mb = du (path )
57
- print (f "{ path } : { size_mb :.1f} MB" , end = " " )
57
+ print ("{path}: {size_mb:.1f} MB" . format ( ** locals ()) , end = " " )
58
58
if size_mb <= THRESHOLD :
59
59
print ("OK" )
60
60
return True
@@ -66,7 +66,7 @@ def check_dir_size(path):
66
66
if os .path .isfile (subpath ):
67
67
file_sz = os .stat (subpath ).st_size / MB
68
68
if file_sz > 0.1 :
69
- print (f " { file_sz :.1f} M { subpath } " )
69
+ print (" {file_sz:.1f}M {subpath}" . format ( ** locals ()) )
70
70
# get report on all subdirs that are at least 100k
71
71
print (
72
72
indent (
You can’t perform that action at this time.
0 commit comments