I am doing backups in python script but i need to get the size of tar.gz file created in MB
How can i get the size in MB of that file
Use the os.stat() function to get a stat structure. The st_size attribute of that is the size of the file in bytes.
How to get the size of tar.gz in (MB) file in python