How can i get the zipped file folder name after unzipping in php.
$zip = new \ZipArchive();
$zip->open(storage_path('app/'.$request->vrfile));
$zip->extractTo(public_path('tour_videos/videos/'.str_slug($company)));
$zip->close();
unlink(storage_path('app/'.$request->vrfile));
Zipped file is called Kigali Home Web Tour
And After Unzipping the file the folder name is Web Tours
How can i get the folder name after extracting zipped files??
No comments:
Post a Comment