library/rar/archive.rb
# Add a file to the list of files.
#
# @return [Array] the list of files.
# @raise ERRNO::ENOENT if the file doesn't exist.
Add a file to the list of files.
Add a file to the list of files .
def add_file path
      if File.exist? path
        @files << path
      else
        raise Errno::ENOENT, "File '#{path}' doesn't exist"
      end
    end
def add_file path if File . exist? path @files << path else raise Errno :: ENOENT , "File '#{path}' doesn't exist" end end
Add a file to the list of files.
Add a file to the list of files .
the list of files.
the list of files .
Array
:ENOENT if the file doesn't exist.
: ENOENT if the file doesn ' t exist .
path
<not_specific>