From 17b3828d837e1ccea92e08bd8c2ae84089add658 Mon Sep 17 00:00:00 2001 From: Eevee Date: Sun, 4 Oct 2009 15:28:57 -0700 Subject: [PATCH] Make uploading work if /tmp and floof are on different drives. --- floof/lib/file_storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/floof/lib/file_storage.py b/floof/lib/file_storage.py index 0b72690..4469394 100644 --- 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.rename(intermediate_path, dest_path) + shutil.move(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 + -- 2.7.4