Answers for "how to print the size of a file in mb python"

2

python get file size in mb

import os
os.path.getsize("path/to/file") / (1024*1024)
Posted by: Guest on February-26-2021

Code answers related to "how to print the size of a file in mb python"

Python Answers by Framework

Browse Popular Code Answers by Language