summaryrefslogtreecommitdiffstats
path: root/pyload/utils
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2013-10-13 16:09:47 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2013-10-13 16:09:47 +0200
commit82f4d47d67476c2f1a4b089a7ec427717257fca6 (patch)
tree41750956a6a084ca9a626c70cc8021bb9a913c68 /pyload/utils
parentPut ctypes under if condition (diff)
downloadpyload-82f4d47d67476c2f1a4b089a7ec427717257fca6.tar.xz
Applied RaNaN tips
Diffstat (limited to 'pyload/utils')
-rw-r--r--pyload/utils/fs.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyload/utils/fs.py b/pyload/utils/fs.py
index 56f76c490..05e098e2a 100644
--- a/pyload/utils/fs.py
+++ b/pyload/utils/fs.py
@@ -75,7 +75,8 @@ def free_space(folder):
s = os.statvfs(folder)
return s.f_frsize * s.f_bavail
-def fs_bsize(path):
+def get_bsize(path):
+ """ get optimal file system buffer size (in bytes) for i/o calls """
path = fs_encode(path)
if os.name == "nt":