Class: File

Inherits:
Object show all
Defined in:
lib/core/file.rb

Class Method Summary collapse

Class Method Details



3
# File 'lib/core/file.rb', line 3

alias_method :old_symlink, :symlink


4
5
6
7
8
9
10
# File 'lib/core/file.rb', line 4

def symlink(old_name, new_name)
  begin
    old_symlink(old_name, new_name)
  rescue Errno::EEXIST
    $stderr.puts "warning: symlinking #{old_name} -> #{new_name}. Already exists"
  end
end