| Index: base/file_util_win.cc
|
| ===================================================================
|
| --- base/file_util_win.cc (revision 8722)
|
| +++ base/file_util_win.cc (working copy)
|
| @@ -88,7 +88,10 @@
|
| file_operation.fFlags = FOF_NOERRORUI | FOF_SILENT | FOF_NOCONFIRMATION;
|
| if (!recursive)
|
| file_operation.fFlags |= FOF_NORECURSION | FOF_FILESONLY;
|
| - return (SHFileOperation(&file_operation) == 0);
|
| + int err = SHFileOperation(&file_operation);
|
| + // Some versions of Windows return ERROR_FILE_NOT_FOUND when
|
| + // deleting an empty directory.
|
| + return (err == 0 || err == ERROR_FILE_NOT_FOUND);
|
| }
|
|
|
| bool Move(const FilePath& from_path, const FilePath& to_path) {
|
| @@ -403,7 +406,7 @@
|
| return true;
|
| }
|
|
|
| - return false;
|
| + return false;
|
| }
|
|
|
| bool CreateTemporaryFileNameInDir(const std::wstring& dir,
|
| @@ -566,8 +569,8 @@
|
| FOF_NOCONFIRMMKDIR | FOF_NOCOPYSECURITYATTRIBS;
|
|
|
| if (0 != SHFileOperation(&move_info))
|
| - return false;
|
| -
|
| + return false;
|
| +
|
| return true;
|
| }
|
|
|
|
|