In modern Python use pathlib.Path's stat().st_size to return the size of a file.
Watch video Find the size of file in Python online without registration, duration hours minute second in high quality. This video was added by user ModernPython 24 November 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 124 once and liked it 4 people.