From: garyo Date: Thu, 7 May 2009 01:43:10 +0000 (+0000) Subject: Fix bug #2298, make Move factory work across filesystems. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d16f902b01e0b168a524d282b0c7c57792b903d2;p=scons.git Fix bug #2298, make Move factory work across filesystems. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4174 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Defaults.py b/src/engine/SCons/Defaults.py index a3acc52d..e4d6da30 100644 --- a/src/engine/SCons/Defaults.py +++ b/src/engine/SCons/Defaults.py @@ -237,7 +237,7 @@ Mkdir = ActionFactory(mkdir_func, def move_func(dest, src): SCons.Node.FS.invalidate_node_memos(dest) SCons.Node.FS.invalidate_node_memos(src) - os.rename(src, dest) + shutil.move(src, dest) Move = ActionFactory(move_func, lambda dest, src: 'Move("%s", "%s")' % (dest, src),