summaryrefslogtreecommitdiffstats
path: root/pyload/api
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-17 14:05:40 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-17 14:05:52 +0100
commitc1e580ec06b9065bc63ebf987d5306c03da237e0 (patch)
tree079f72ccc9d3f54ba14c7bf19e57ec67b813f6c3 /pyload/api
parentMerge pull request #365 from vuolter/m/timestamp (diff)
downloadpyload-c1e580ec06b9065bc63ebf987d5306c03da237e0.tar.xz
refactored pluginManager
Diffstat (limited to 'pyload/api')
-rw-r--r--pyload/api/FileApi.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/pyload/api/FileApi.py b/pyload/api/FileApi.py
index 2ca409165..984729b8c 100644
--- a/pyload/api/FileApi.py
+++ b/pyload/api/FileApi.py
@@ -74,14 +74,12 @@ class FileApi(ApiComponent):
raise FileDoesNotExists(fid)
return info
- @RequirePerm(Permission.Download)
def getFilePath(self, fid):
""" Internal method to get the filepath"""
info = self.getFileInfo(fid)
pack = self.core.files.getPackage(info.package)
return pack.getPath(), info.name
-
@RequirePerm(Permission.All)
def findFiles(self, pattern):
return self.core.files.getTree(-1, True, DownloadState.All, pattern)