new_filename = "#{filename}2"File.symlink(filename, new_filename)File.symlink? new_filename # => trueFile.file? new_filename # => true