force creation of imap server directory when it has been deleted to avoid imap server directory.sbd creation, patch by gemal.dk, r/sr=me 210683

This commit is contained in:
bienvenu%nventure.com 2003-10-30 15:29:17 +00:00
parent 2e490df717
commit 57d8a01c3b

View File

@ -138,7 +138,10 @@ nsImapURI2Path(const char* rootURI, const char* uriStr, nsFileSpec& pathResult)
rv = localPath->GetFileSpec(&pathResult);
if (NS_FAILED(rv)) return rv;
// nsFileSpec tempPath(pathResult.GetNativePathCString(), PR_TRUE); // This is needed so that we dont get imapservername.sbd See bug 210683
// This forces the creation of the parent server directory
// so that we don't get imapservername.sbd instead
// when the host directory has been deleted. See bug 210683
nsFileSpec tempPath(pathResult.GetNativePathCString(), PR_TRUE);
pathResult.CreateDirectory();
}