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