public function ArchiverInterface::add in Drupal 7
Adds the specified file or directory to the archive.
Parameters
$file_path: The full system path of the file or directory to add. Only local files and directories are supported.
Return value
ArchiverInterface The called object.
2 methods override ArchiverInterface::add()
- ArchiverTar::add in modules/
system/ system.archiver.inc - Adds the specified file or directory to the archive.
- ArchiverZip::add in modules/
system/ system.archiver.inc - Adds the specified file or directory to the archive.
File
- includes/
archiver.inc, line 33 - Shared classes and interfaces for the archiver system.
Class
- ArchiverInterface
- Defines the common interface for all Archiver classes.
Code
public function add($file_path);