[Xfce4-commits] <moka:master> Also port move -> mv.

Nick Schermer noreply at xfce.org
Thu Jul 25 12:54:01 CEST 2013


Updating branch refs/heads/master
         to 67d536be55f0aff50b60e037e6c660bd7d1a6663 (commit)
       from dbee6c0ef3c5382a447de672f07db095e6072ac9 (commit)

commit 67d536be55f0aff50b60e037e6c660bd7d1a6663
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Jul 25 12:52:33 2013 +0200

    Also port move -> mv.

 lib/models/archive.rb |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/models/archive.rb b/lib/models/archive.rb
index dd45aae..013df3b 100755
--- a/lib/models/archive.rb
+++ b/lib/models/archive.rb
@@ -208,13 +208,13 @@ module Moka
             lockfile = File.new(target_file)
             file.flock(File::LOCK_EX)
 
-            File.move(source_file, target_file)
+            FileUtils.mv(source_file, target_file)
             FileUtils.chmod(0664, target_file)
           ensure
             lockfile.flock(File::LOCK_UN)
           end
         else
-          File.move(source_file, target_file)
+          FileUtils.mv(source_file, target_file)
           FileUtils.chmod(0664, target_file)
         end
 
@@ -315,7 +315,7 @@ module Moka
           parent = path.parent
           FileUtils.mkdir_p(parent) unless File.directory?(parent)
 
-          project.classification = old_classifcation unless File.move(old_dir, new_dir)
+          project.classification = old_classifcation unless FileUtils.mv(old_dir, new_dir)
           begin
             Dir.delete(old_dir)
           rescue SystemCallError


More information about the Xfce4-commits mailing list