From 6c9f7092905647cc60ba2e439e8cad4542699dc3 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 23 Jan 2017 12:55:03 +0100 Subject: [PATCH] Fix linux utf8 path free space query --- src/util/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/helper.py b/src/util/helper.py index 6b2a90f0..597a8d75 100644 --- a/src/util/helper.py +++ b/src/util/helper.py @@ -52,7 +52,7 @@ def openLocked(path, mode="w"): def getFreeSpace(): free_space = -1 if "statvfs" in dir(os): # Unix - statvfs = os.statvfs(config.data_dir) + statvfs = os.statvfs(config.data_dir.encode("utf8")) free_space = statvfs.f_frsize * statvfs.f_bavail else: # Windows try: