TwistPHP Documentation

addEmptyDirectory

File path: dist/twist/Core/Helpers/Archive.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

addEmptyDirectoryAdd an empty directory to the zip, the directory path must be set from the root of the zip

Parameters

Name Type Description
[$dirZipDirectoryPath = '']stringn/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$dirZipDirectoryPath '';

//Call the function addEmptyDirectory with the example vars
Twist::Archive() -> addEmptyDirectory($dirZipDirectoryPath);