From: pcanterino <> Date: Fri, 18 Mar 2005 18:14:41 +0000 (+0000) Subject: Using the move() function from the File::Copy module is more reliable than using X-Git-Tag: version_2_3_2~6 X-Git-Url: https://git.p6c8.net/devedit.git/commitdiff_plain/49d3533bb98307db019d423a7fd070f29c9cb7ee?ds=sidebyside Using the move() function from the File::Copy module is more reliable than using the rename() function --- diff --git a/modules/Command.pm b/modules/Command.pm index 2e8f935..ab4f8b8 100644 --- a/modules/Command.pm +++ b/modules/Command.pm @@ -6,7 +6,7 @@ package Command; # Execute Dev-Editor's commands # # Author: Patrick Canterino -# Last modified: 2005-02-28 +# Last modified: 2005-03-18 # use strict; @@ -681,7 +681,7 @@ sub exec_rename($$) } } - rename($physical,$new_physical) or return error($config->{'errors'}->{'rename_failed'},$dir,{FILE => $virtual, NEW_FILE => $new_virtual}); + move($physical,$new_physical) or return error($config->{'errors'}->{'rename_failed'},$dir,{FILE => $virtual, NEW_FILE => $new_virtual}); return devedit_reload({command => 'show', file => $new_dir}); } else