Method: File.symlink

Defined in:
file.c

Creates a symbolic link called new_name for the existing file old_name. Raises a NotImplemented exception on platforms that do not support symbolic links.

File.symlink("testfile", "link2test")   #=> 0

Returns:

  • (0)


2127
2128
2129
# File 'file.c', line 2127

static VALUE
rb_file_s_symlink(klass, from, to)
VALUE klass, from, to;