| Index: base/file_util_win.cc
|
| ===================================================================
|
| --- base/file_util_win.cc (revision 2671)
|
| +++ base/file_util_win.cc (working copy)
|
| @@ -365,6 +365,13 @@
|
| return SUCCEEDED(result);
|
| }
|
|
|
| +bool IsDirectoryEmpty(const std::wstring& dir_path) {
|
| + FileEnumerator files(dir_path, false, FileEnumerator::FILES_AND_DIRECTORIES);
|
| + if (files.Next().empty())
|
| + return true;
|
| + return false;
|
| +}
|
| +
|
| bool GetTempDir(std::wstring* path) {
|
| wchar_t temp_path[MAX_PATH + 1];
|
| DWORD path_len = ::GetTempPath(MAX_PATH, temp_path);
|
|
|