Corrected path construction of children folders in function `getFolders`

This commit is contained in:
Tristan B. Kildaire 2020-06-18 15:27:40 +02:00
parent 10542eda42
commit 34d031d957
1 changed files with 2 additions and 3 deletions

View File

@ -159,14 +159,13 @@ public final class Folder
{
Folder[] folders;
/* TODO: Implement me */
/* Get a list of all the directories within this directory */
foreach(DirEntry directory; dirEntries(folderPath, SpanMode.shallow))
{
/* Only append fodlers */
if(directory.isDir())
{
folders ~= new Folder(mailbox, directory.name());
folders ~= new Folder(mailbox, folderPath~"/"~directory.name());
}
}