mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-10 21:26:35 +01:00
Added ability to zip a single file
This commit is contained in:
parent
11bfd4ae77
commit
5896721526
@ -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 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user