我有一个以下格式的 zip 文件:
test.zip
|- test/
|- test.txt
|- test2.txt
我可以使用这个提取:
$zipper = new Zipper();
$zipper->make('test.zip')->folder('test')->extractTo('foo'); //extracts contents of test folder inside zip to foo directory
如何在不指定 zip 内文件夹名称的情况下提取内容?
谢谢!
$拉链 = 新拉链();
$zipper->make('path/of/your/file/test.zip')->extractTo('foo');
确保两个路径/位置(zip 文件和解压文件)都正常。它对我有用。