diff options
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h index 304d3cb..45d4a33 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -151,6 +151,9 @@ bool PathExists(const std::wstring& path); // Returns true if the given path is writable by the user, false otherwise. bool PathIsWritable(const std::wstring& path); +// Returns true if the given path exists and is a directory, false otherwise. +bool DirectoryExists(const std::wstring& path); + #if defined(OS_WIN) // Gets the creation time of the given file (expressed in the local timezone), // and returns it via the creation_time parameter. Returns true if successful, |