CI_Zip::add_dir()

add_dir($directory)

Parameters:
  • $directory (mixed) – Directory name string or an array of multiple directories
Return type:

void

Permits you to add a directory. Usually this method is unnecessary since you can place your data into directories when using $this->zip->add_data(), but if you would like to create an empty directory you can do so:

$this->zip->add_dir('myfolder'); // Creates a directory called "myfolder"
doc_CodeIgniter
2016-10-15 16:32:08
Comments
Leave a Comment

Please login to continue.