Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gdatastore
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2011-08-22 13:46:27 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2011-08-22 13:54:29 (GMT)
commit28bace5821005637ed31b9de0cc0fa17d2be89e2 (patch)
tree088f392984a325b38d6396d7157e88e06378d27a /gdatastore
parentf34073d56311df56c23e91dac8920bdf3c398348 (diff)
InternalApi: don't choke on empty path if delete_after is set
delete_after should be ignored if path is empty.
Diffstat (limited to 'gdatastore')
-rw-r--r--gdatastore/datastore.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdatastore/datastore.py b/gdatastore/datastore.py
index 77cc64b..6f5a011 100644
--- a/gdatastore/datastore.py
+++ b/gdatastore/datastore.py
@@ -378,7 +378,7 @@ class InternalApi(object):
self._index.store((tree_id, child_id), metadata)
self._invoke_callbacks('save', tree_id, child_id, parent_id, metadata)
- if delete_after:
+ if delete_after and path:
os.remove(path)
async_cb(tree_id, child_id)