'addBaseFolder' fully implemented

This commit is contained in:
Tristan B. Kildaire 2020-07-29 10:22:21 +02:00
parent b55921fea6
commit d912721723
1 changed files with 4 additions and 3 deletions

View File

@ -70,11 +70,10 @@ public final class Mailbox
{
Folder newFolder;
/* TODO: Implement folder creation */
/* Create the directory */
mkdir("mailboxes/"~username~"/"~folderName);
// newFolder = new Folder(this, null, folderName);
newFolder = new Folder(this, folderName);
return newFolder;
}
@ -137,6 +136,8 @@ public final class Folder
*
* The Mailbox is specified by `mailbox` and the location
* of the folder within the mailbox by `folderPath`.
*
* TODO: DIsallow simply empty folder name (somewhere)
*/
this(Mailbox mailbox, string folderPath)
{