| Class | Archive::Extract |
| In: |
lib/archive/extract.rb
|
| Parent: | Object |
Create a new Extract object. Takes a filename as string containing the archive name, and a directory name as string containing the target path to extract to. The default target is the current directory.
If either the filename or directory name do not already exist, ArgumentError will be raised.
Extraction tries to preserve timestamps and permissions, but not uid/gid. Note that this is format-dependent — e.g., .zip files will always be extracted as mode 0777.