/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def file_size_mb(filePath): return float(os.path.getsize(filePath)) / (1024 * 1024)