Fixed 'deleteFolder' crash

This commit is contained in:
Tristan B. Kildaire 2020-07-29 10:16:00 +02:00
parent e31a6f09b8
commit ae944f5647
1 changed files with 7 additions and 1 deletions

View File

@ -55,6 +55,12 @@ public final class Mailbox
{
Folder[] folders;
/* Get a list of all the directories within this directory */
foreach(DirEntry dirEntry; dirEntries("mailboxes/"~username~"/", SpanMode.shallow))
{
folders ~= new Folder(this, dirEntry.name());
}
/* TODO: Implement me */
return folders;
@ -218,7 +224,7 @@ public final class Folder
}
/* Delete this folder */
rmdir(folderPath);
rmdir("mailboxes/"~mailbox.username~"/"~folderPath);
}
/**