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
Max Bohomolov -
Alexis Kypridemos -
CodeWithVed -
Kyle Pena -
Top comments (0)