Added ability to zip a single file

This commit is contained in:
xevidos 2019-09-27 13:58:32 -04:00
parent 11bfd4ae77
commit 5896721526

View File

@ -218,6 +218,13 @@ class Archive {
echo var_dump( $path, $output );
return false;
}
if( is_file( $path ) ) {
$archive->addFile( $path, basename( $path ) );
$archive->close();
return true;
}
}
$i = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $path ) );