summaryrefslogtreecommitdiffstats
path: root/pyload/api/FileApi.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-13 18:38:53 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-12-13 18:38:53 +0100
commit3e84ea823766adef12946de90b33e62a84b52c46 (patch)
treec6b2345cc3c2f9c4f67a6985bd3c8282cdac9e59 /pyload/api/FileApi.py
parentplugin selection for linkgrabber, partial closes #182 (diff)
downloadpyload-3e84ea823766adef12946de90b33e62a84b52c46.tar.xz
added new file states
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.