Throws an exception if the file or folder does not exist
When called on folders, returns the size of the folder metadata
(i.e. the list of children names), and not the size of the folder's
recursive contents. Use os.walk if you want to sum up the total
size of a directory tree.
Gets the size of the given file or folder
Throws an exception if the file or folder does not exist
When called on folders, returns the size of the folder metadata (i.e. the list of children names), and not the size of the folder's recursive contents. Use os.walk if you want to sum up the total size of a directory tree.