PharData::addEmptyDir
(No version information available, might be only in CVS)
PharData::addEmptyDir — Add an empty directory to the tar/zip archive
Description
bool PharData::addEmptyDir
( string $dirname
)
Parameters
-
dirname
-
The name of the empty directory to create in the phar archive
Return Values
no return value, exception is thrown on failure.
Examples
Example #1 A PharData::addEmptyDir() example
<?php
try {
$a = new PharData('/path/to/my.tar');
$a->addEmptyDir('/full/path/to/file');
$b = $a['full/path/to/file']->isDir();
} catch (Exception $e) {
}
?>