fix regression in local folder sub-folder handling due to nsFileSpec removal, sr=mscott, 375890

This commit is contained in:
bienvenu%nventure.com 2007-03-29 22:50:43 +00:00
Родитель eb7dfcc939
Коммит ee97c43b77
1 изменённых файлов: 12 добавлений и 0 удалений

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

@ -397,6 +397,18 @@ nsMsgLocalMailFolder::GetSubFolders(nsIEnumerator* *result)
path->Create(nsIFile::DIRECTORY_TYPE, 0755); path->Create(nsIFile::DIRECTORY_TYPE, 0755);
path->IsDirectory(&directory); path->IsDirectory(&directory);
if (!directory)
{
nsCOMPtr <nsIFile> dirFile;
rv = path->Clone(getter_AddRefs(dirFile));
NS_ENSURE_SUCCESS(rv, rv);
nsCAutoString leafName;
dirFile->GetNativeLeafName(leafName);
leafName.AppendLiteral(".sbd");
dirFile->SetNativeLeafName(leafName);
path = do_QueryInterface(dirFile);
path->IsDirectory(&directory);
}
mInitialized = PR_TRUE; // need to set this flag here to avoid infinite recursion mInitialized = PR_TRUE; // need to set this flag here to avoid infinite recursion
// we have to treat the root folder specially, because it's name // we have to treat the root folder specially, because it's name