Check the File Size with Python
Using os module
Using stat() from the os module, you can get the details of a file. Use the st_size attribute of stat() method to get the file size.
The unit of the file size is byte.
Soluții pentru problemele tale IT