我如何从storage/app/anyFolder
中的zip中提取文件,但不公开?
$directoryName = strval(time()).rand(1000, 9999);
Storage::makeDirectory('temp/'.$directoryName, 0777);
$path = 'storage/app/temp/'.$directoryName;
$zipArchive = Zipper::make('storage/app/resources/'.$id.'.zip')->extractTo($path);
拉链在storage/app/public/resources/$id.zip
中尝试打开存档并提取到storage/app/public/temp/$directoryName
如何打开位于storage/app/resources/$id.zip
的档案并解压缩到storage/app/temp/$directoryName
?