Determining File Byte Size

  • Share this:

Code introduction


Get the byte size of a specified file.


Technology Stack : os

Code Type : Function

Code Difficulty : Beginner


                
                    
def get_file_size(filename):
    import os
    return os.path.getsize(filename)                
              
Tags: