Implemented folder deletion in the protocol

This commit is contained in:
Tristan B. Kildaire 2020-07-27 21:54:34 +02:00
parent 704200025c
commit 5d12378cd3
1 changed files with 5 additions and 1 deletions

View File

@ -258,7 +258,11 @@ public final class ButterflyClient : Thread
/* Make sure the connection is from a client */ /* Make sure the connection is from a client */
if(connectionType == ClientType.CLIENT) if(connectionType == ClientType.CLIENT)
{ {
/* TODO: Implement me */ /* The folder to be deleted */
Folder deleteFolder = new Folder(mailbox, commandBlock["request"]["folder"].str());
/* Delete the folder */
deleteFolder.deleteFolder();
} }
else else
{ {