summaryrefslogtreecommitdiffstats
path: root/pyload/api/FileApi.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/api/FileApi.py')
-rw-r--r--pyload/api/FileApi.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/pyload/api/FileApi.py b/pyload/api/FileApi.py
index 817bae348..449a520b6 100644
--- a/pyload/api/FileApi.py
+++ b/pyload/api/FileApi.py
@@ -152,6 +152,21 @@ class FileApi(ApiComponent):
"""
return self.core.files.moveFiles(fids, pid)
+ def deleteFiles(self, fids):
+ """ Deletes files from disk
+ :param fids: list of file ids
+ :return: False if any file can't be deleted currently
+ """
+ # TODO
+
+
+ def deletePackages(self, pids):
+ """ Delete package and all content from disk recursively
+ :param pids: list of package ids
+ :return: False if any package can't be deleted currently
+ """
+ # TODO
+
@RequirePerm(Permission.Modify)
def orderPackage(self, pid, position):
"""Set new position for a package.