113128 r=bienvenu sr=mscott a=roc+moz fix deleting/moving local folders on mac

This commit is contained in:
naving%netscape.com 2002-02-27 02:30:58 +00:00
Родитель 71df6835db
Коммит e00f0abe6a
1 изменённых файлов: 5 добавлений и 4 удалений

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

@ -2061,12 +2061,13 @@ nsMsgLocalMailFolder::CopyFolderLocal(nsIMsgFolder *srcFolder, PRBool isMoveFold
if (msgParent)
{
msgParent->PropagateDelete(srcFolder, PR_FALSE, msgWindow); // The files have already been moved, so delete storage PR_FALSE
oldPath.Delete(PR_TRUE); //berkeley mailbox
summarySpec.Delete(PR_TRUE); //msf file
if (!oldPath.IsDirectory())
oldPath.Delete(PR_FALSE); //berkeley mailbox
summarySpec.Delete(PR_FALSE); //msf file
if (!oldPath.IsDirectory()) //folder path cannot be directory but still check it to be safe
{
AddDirectorySeparator(oldPath);
oldPath.Delete(PR_TRUE); //delete the .sbd directory and it's content. All subfolders have been moved
if (oldPath.IsDirectory())
oldPath.Delete(PR_TRUE); //delete the .sbd directory and it's content. All subfolders have been moved
}
}
}