diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2012-05-16 16:58:21 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2012-05-16 16:58:21 (GMT) |
commit | 8bede7272c7b1477a3d4ab3e52ed756841ed665e (patch) | |
tree | c93bae9e80b7c4bb66af0464e8d369b0d0ee76cf | |
parent | 93e500024d43fe5eaf64005c4a4a87552cfa0df2 (diff) |
Disrectory size is zero on fc14 on XO-1 even if it is not empty
-rw-r--r-- | local_document/bus.py | 2 | ||||
-rw-r--r-- | local_document/cache.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/local_document/bus.py b/local_document/bus.py index a48f34c..9a22892 100644 --- a/local_document/bus.py +++ b/local_document/bus.py @@ -26,7 +26,7 @@ from local_document.mounts import Mounts from active_document import Request, Response, util, coroutine -_logger = logging.getLogger('local_document.server') +_logger = logging.getLogger('local_document.bus') class Server(object): diff --git a/local_document/cache.py b/local_document/cache.py index 79e7cbf..a5d39c8 100644 --- a/local_document/cache.py +++ b/local_document/cache.py @@ -38,7 +38,7 @@ def get_cached_blob(document, guid, prop): with file(mime_path) as f: mime_type = f.read().strip() - if not os.stat(path).st_size: + if not isdir(path) and os.stat(path).st_size == 0: path = None return path, mime_type |