File.link(old_name, new_name) â 0
Class Public methods
Creates a new name for an existing file using a hard link. Will not
overwrite new_name if it already exists (raising a subclass of
SystemCallError
). Not available on all platforms.
1 2 | File .link( "testfile" , ".testfile" ) #=> 0 IO .readlines( ".testfile" )[ 0 ] #=> "This is line one\n" |
Please login to continue.