diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-10-21 15:00:29 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-10-21 15:00:29 (GMT) |
commit | d17026bd22db5d8b2a924ec2e19ea8e4a5adcd09 (patch) | |
tree | 44ca3869ce2b9e10921e63c8dc5de30c870641e5 | |
parent | bbca5fb32995e48285f59267b8fc3499d94456ba (diff) |
remove the temp file so os.link can do its job
-rw-r--r-- | src/olpc/datastore/filestore.py | 1 |
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) |