diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-13 10:58:51 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-13 10:58:51 +0100 |
commit | cda057e979cbdc8022687e1810b876b371c8c11f (patch) | |
tree | e31fd827931fc85465b4cee3d19d82d35a905c39 /module/Api.py | |
parent | added setup.py, dropped GUI (diff) | |
download | pyload-cda057e979cbdc8022687e1810b876b371c8c11f.tar.xz |
fix info page, removed icons
Diffstat (limited to 'module/Api.py')
-rw-r--r-- | module/Api.py | 5 |
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): |