150156 type fix for OS/2 - do a copy if move fails because file already exists

This commit is contained in:
mkaply%us.ibm.com 2002-11-14 19:41:18 +00:00
Родитель 990cc645b1
Коммит c8f0ccc822
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -912,7 +912,7 @@ nsLocalFile::CopySingleFile(nsIFile *sourceFile, nsIFile *destParent, const nsAC
rc = DosMove(filePath.get(), (PSZ)NS_CONST_CAST(char*, destPath.get()));
}
if (!move || rc == ERROR_NOT_SAME_DEVICE) {
if (!move || rc == ERROR_NOT_SAME_DEVICE || rc == ERROR_ACCESS_DENIED) {
/* will get an error if the destination and source files aren't on the
* same drive. "MoveFile()" on Windows will go ahead and move the
* file without error, so we need to do the same IBM-AKR