Python public recipes
This code prints the size of the file "/path/to/file" on the console.
Shortcut: file.getsize
import os
os.path.getsize(path)
This code prints the size of the file "/path/to/file" on the console.
Shortcut: file.getsize
import os
os.path.getsize(path)