support 'recursive' flag to recursively delete folders.

This commit is contained in:
2023-05-26 17:58:25 +09:00
parent 9ed9c4d0f2
commit 1a0a26d7b3
2 changed files with 4 additions and 3 deletions

View File

@ -36,4 +36,4 @@ class RmCommand(BaseCommand):
if not args.recursive:
raise IllegalArgumentException(f"Cannot remove `{r_path}`: Is a folder.")
folder_api = FolderApi(connection)
folder_api.destroy(folder.id)
folder_api.destroy(folder.id, True)