From 81cb7bd2b12e00539bbfa163a6d5cca2a44096fe Mon Sep 17 00:00:00 2001 From: "bienvenu%nventure.com" Date: Mon, 10 Nov 2003 23:38:10 +0000 Subject: [PATCH] fix downloading news when news directory is missing, patch by gemal.dk, r/sr=me 209641 --- mailnews/news/src/nsNewsFolder.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mailnews/news/src/nsNewsFolder.cpp b/mailnews/news/src/nsNewsFolder.cpp index 5cefb89ef9a..3667a1705e2 100644 --- a/mailnews/news/src/nsNewsFolder.cpp +++ b/mailnews/news/src/nsNewsFolder.cpp @@ -347,6 +347,8 @@ nsMsgNewsFolder::GetSubFolders(nsIEnumerator* *result) rv = pathSpec->GetFileSpec(&path); if (NS_FAILED(rv)) return rv; + nsFileSpec tempPath(path.GetNativePathCString(), PR_TRUE); + rv = CreateSubFolders(path); if (NS_FAILED(rv)) return rv; @@ -871,13 +873,13 @@ NS_IMETHODIMP nsMsgNewsFolder::GetExpungedBytesCount(PRUint32 *count) NS_IMETHODIMP nsMsgNewsFolder::GetDeletable(PRBool *deletable) { - NS_ASSERTION(0,"GetDeletable() not implemented"); +// NS_ASSERTION(0,"GetDeletable() not implemented"); return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP nsMsgNewsFolder::GetRequiresCleanup(PRBool *requiresCleanup) { - NS_ASSERTION(0,"GetRequiresCleanup not implemented"); +// NS_ASSERTION(0,"GetRequiresCleanup not implemented"); return NS_ERROR_NOT_IMPLEMENTED; }