summaryrefslogtreecommitdiffstats
path: root/module/Api.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-13 10:58:51 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-13 10:58:51 +0100
commitcda057e979cbdc8022687e1810b876b371c8c11f (patch)
treee31fd827931fc85465b4cee3d19d82d35a905c39 /module/Api.py
parentadded setup.py, dropped GUI (diff)
downloadpyload-cda057e979cbdc8022687e1810b876b371c8c11f.tar.xz
fix info page, removed icons
Diffstat (limited to 'module/Api.py')
-rw-r--r--module/Api.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/Api.py b/module/Api.py
index fba02d574..ac9ea7f79 100644
--- a/module/Api.py
+++ b/module/Api.py
@@ -25,7 +25,8 @@ from itertools import chain
from PyFile import PyFile
-from utils import freeSpace, compare_time, to_string
+from utils import compare_time, to_string
+from utils.fs import free_space
from common.packagetools import parseNames
from network.RequestFactory import getURL
from remote import activated
@@ -213,7 +214,7 @@ class Api(Iface):
@permission(PERMS.STATUS)
def freeSpace(self):
"""Available free space at download directory in bytes"""
- return freeSpace(self.core.config["general"]["download_folder"])
+ return free_space(self.core.config["general"]["download_folder"])
@permission(PERMS.ALL)
def getServerVersion(self):