pyguymer3.return_folder_size¶
- pyguymer3.return_folder_size(path, /, *, allowHidden=False, debug=True, ensureNFC=True, follow_symlinks=True, return_symlinks=True)[source]¶
Return the total size of all files in a directory.
This function returns the total size of all files recursively in a directory.
- Parameters:
path (str) – the directory to search
allowHidden (bool, optional) – allow hidden files
debug (bool, optional) – print debug messages
ensureNFC (bool, optional) – ensure that the Unicode encoding is NFC
follow_symlinks (bool, optional) – follow symbolic links
return_symlinks (bool, optional) – include symbolic links in the returned list
- Returns:
ans – the total size
- Return type:
Notes
Copyright 2017 Thomas Guymer [1]
References