]> git.p6c8.net - devedit.git/commitdiff
Using the move() function from the File::Copy module is more reliable than using
authorpcanterino <>
Fri, 18 Mar 2005 18:14:41 +0000 (18:14 +0000)
committerpcanterino <>
Fri, 18 Mar 2005 18:14:41 +0000 (18:14 +0000)
the rename() function

modules/Command.pm

index 2e8f93594b88591e8998fed09b0bfe002cfe956d..ab4f8b8954689e49f489cc69519a278f755b6db7 100644 (file)
@@ -6,7 +6,7 @@ package Command;
 # Execute Dev-Editor's commands
 #
 # Author:        Patrick Canterino <patrick@patshaping.de>
 # Execute Dev-Editor's commands
 #
 # Author:        Patrick Canterino <patrick@patshaping.de>
-# Last modified: 2005-02-28
+# Last modified: 2005-03-18
 #
 
 use strict;
 #
 
 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
   return devedit_reload({command => 'show', file => $new_dir});
  }
  else

patrick-canterino.de