public Zip::add($file_path)
Adds the specified file or directory to the archive.
Parameters
string $file_path: The full system path of the file or directory to add. Only local files and directories are supported.
Return value
\Drupal\Core\Archiver\ArchiverInterface The called object.
Overrides ArchiverInterface::add
File
- core/lib/Drupal/Core/Archiver/Zip.php, line 39
Class
- Zip
- Defines a archiver implementation for .zip files.
Namespace
Drupal\Core\Archiver
Code
public function add($file_path) { $this->zip->addFile($file_path); return $this; }
Please login to continue.