/ Published in: Python
![](/img/icon_sav.png?v3)
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)
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
def file_size_mb(filePath): return float(os.path.getsize(filePath)) / (1024 * 1024)