projects
/
zzz-floof.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bdc797
)
Make uploading work if /tmp and floof are on different drives.
author
Eevee
<git@veekun.com>
Sun, 4 Oct 2009 22:28:57 +0000
(15:28 -0700)
committer
Eevee
<git@veekun.com>
Sun, 4 Oct 2009 22:28:57 +0000
(15:28 -0700)
floof/lib/file_storage.py
patch
|
blob
|
history
diff --git
a/floof/lib/file_storage.py
b/floof/lib/file_storage.py
index
0b72690
..
4469394
100644
(file)
--- a/
floof/lib/file_storage.py
+++ b/
floof/lib/file_storage.py
@@
-52,7
+52,7
@@
def save_file(space, temp):
dest_path = os.path.join( dest_dir, hash[2:] )
makedirs(dest_dir)
-
os.renam
e(intermediate_path, dest_path)
+
shutil.mov
e(intermediate_path, dest_path)
return hash
@@
-63,4
+63,4
@@
def makedirs(dir):
os.makedirs(dir)
except OSError:
pass
-
\ No newline at end of file
+