File path: dist/twist/Core/Utilities/Archive.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
addFile
— Add a file or directory to the current Zip Archive, the archive must be loaded or created using the 'load' or 'create' functions
Name | Description |
---|---|
$dirLocalFile | n/a |
[$dirZipBasePath = ''] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$dirLocalFile = '/home/user/public_html/twist';
$dirZipBasePath = '';
//Call the function addFile with the example vars
Twist::Archive() -> addFile($dirLocalFile, $dirZipBasePath);