bug in float/int
This commit is contained in:
@@ -154,7 +154,7 @@ def menu_upload(opts):
|
||||
if f.startswith("."):
|
||||
continue
|
||||
if os.path.isfile(f):
|
||||
file_size = round(os.path.getsize(f) / 1024 / 1024, 2)
|
||||
file_size = round(float(os.path.getsize(f)) / 1024 / 1024, 2)
|
||||
else:
|
||||
file_size = "[DIR]"
|
||||
f += "/"
|
||||
|
||||
Reference in New Issue
Block a user