Function TRAP::FileSystem::GetSize#
Function Documentation#
-
TRAP::Optional<uintmax_t> TRAP::FileSystem::GetSize(const std::filesystem::path &path, bool recursive = true)#
Get the size of an file or folder in bytes.
- Parameters:
path – Path to a file or folder.
recursive – Recursively count file sizes. This only has an effect if path leads to a folder.
- Returns:
File or folder size in bytes. Empty optional if an error has occurred.