diff options
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h index 04afdec..b2e176b 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -82,6 +82,15 @@ int CountFilesCreatedAfter(const FilePath& path, // particularly speedy in any platform. int64 ComputeDirectorySize(const FilePath& root_path); +// Returns the total number of bytes used by all files matching the provided +// |pattern|, on this |directory| (without recursion). If the path does not +// exist the function returns 0. +// +// This function is implemented using the FileEnumerator class so it is not +// particularly speedy in any platform. +int64 ComputeFilesSize(const FilePath& directory, + const FilePath::StringType& pattern); + // Deletes the given path, whether it's a file or a directory. // If it's a directory, it's perfectly happy to delete all of the // directory's contents. Passing true to recursive deletes |