Flowdock
method

move_file

Importance_0
v1.2.6 - Show latest stable - 0 notes - Class: FileOperations
move_file(src, dest) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionwebservice/setup.rb, line 510
  def move_file(src, dest)
    File.unlink dest if File.exist?(dest)
    begin
      File.rename src, dest
    rescue
      File.open(dest, 'wb') {|f| f.write File.binread(src) }
      File.chmod File.stat(src).mode, dest
      File.unlink src
    end
  end
Register or log in to add new notes.