I am using zip library to zip a folder or directory
My path structure is
$estructure = "/home/administrator/Downloads/pdf_files/"
And iam zipping folder using below code
$this->zip->read_dir($estructure);
$this->zip->archive('/var/www/');
$this->zip->download('folder_name.zip');
Now problem is when I extract compressed directory it gives full path like
/home/administrator/Downloads/pdf_files/
what I need is when I extract the zip file its should only diretcory like pdf_file,
Could any help me on that please? thanks