Archive::Tar::File

Archive::Tar::File is a Perl subclass for in-memory extracted file from Archive::Tar.
Download

Archive::Tar::File Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Jos Boumans
  • Publisher web site:
  • http://search.cpan.org/~kane/

Archive::Tar::File Tags


Archive::Tar::File Description

Archive::Tar::File is a Perl subclass for in-memory extracted file from Archive::Tar. Archive::Tar::File is a Perl subclass for in-memory extracted file from Archive::Tar.SYNOPSIS my @items = $tar->get_files; print $_->name, ' ', $_->size, "n" for @items; print $object->get_content; $object->replace_content('new content'); $object->rename( 'new/full/path/to/file.c' );Archive::Tar::Files provides a neat little object layer for in-memory extracted files. It's mostly used internally in Archive::Tar to tidy up the code, but there's no reason users shouldn't use this API as well.AccessorsA lot of the methods in this package are accessors to the various fields in the tar header:name The file's namemode The file's modeuid The user id owning the filegid The group id owning the filesize File size in bytesmtime Modification time. Adjusted to mac-time on MacOS if requiredchksum Checksum field for the tar headertype File type -- numeric, but comparable to exported constants -- see Archive::Tar's documentationlinkname If the file is a symlink, the file it's pointing tomagic Tar magic string -- not useful for most usersversion Tar version string -- not useful for most usersuname The user name that owns the filegname The group name that owns the filedevmajor Device major number in case of a special filedevminor Device minor number in case of a special fileprefix Any directory to prefix to the extraction path, if anyraw Raw tar header -- not useful for most users Requirements: · Perl


Archive::Tar::File Related Software