How to check the size of a file in Python? Subash Chandran 13th October 2021 Leave a Comment >>> import os >>> b = os.path.getsize("/path/isa_005.mp3") >>> b 2071611 Curly hair, very fair, please share 🙂Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email this to a friend (Opens in new window) Related See also Python code snippet - How to check if cursor is hidden? Snippets How to check the size of a file in Python? Change font size A Decrease font size. A Reset font size. A Increase font size.