Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-10-21 15:00:29 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-10-21 15:00:29 (GMT)
commitd17026bd22db5d8b2a924ec2e19ea8e4a5adcd09 (patch)
tree44ca3869ce2b9e10921e63c8dc5de30c870641e5
parentbbca5fb32995e48285f59267b8fc3499d94456ba (diff)
remove the temp file so os.link can do its job
-rw-r--r--src/olpc/datastore/filestore.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/olpc/datastore/filestore.py b/src/olpc/datastore/filestore.py
index 0ed2b56..a567175 100644
--- a/src/olpc/datastore/filestore.py
+++ b/src/olpc/datastore/filestore.py
@@ -103,6 +103,7 @@ class FileStore(object):
fd, destination_path = tempfile.mkstemp(prefix=uid,
dir=destination_dir)
del fd
+ os.unlink(destination_path)
break
else:
file_name = '%s_%s' % (uid, attempt)