getting size of files with python code example Example: python file size >>> import os >>> b = os.path.getsize("/path/isa_005.mp3") >>> b 2071611