It is extremely easy to get the size of a file in python.
import os
if os.path.isdir(file_dr):
size = str(get_size(file_dr))
else:
size = str(os.path.getsize(file_dr))
print(size)
It is extremely easy to get the size of a file in python.
import os
if os.path.isdir(file_dr):
size = str(get_size(file_dr))
else:
size = str(os.path.getsize(file_dr))
print(size)
For further actions, you may consider blocking this person and/or reporting abuse
Marco -
Wasi Kahn -
dev_neil_a -
Irena Popova π©π»βπ» -
Top comments (0)