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
Lakshit Somani -
Vinícius Aarão Caldas da Costa -
Nevo David -
Misty Paprika -
Top comments (0)