我想将目录复制或移动到 laravel 中的新目录,但 copyDirectory 函数总是向我返回 false。我的代码有什么问题吗?提前致谢
$destinationDir = 'storage/Components/'.'Compressor'.'/'.$approvedRequest['compressor_model'].'/';
$success = File::copyDirectory(public_path().$approvedRequest['attachment_dir'], public_path().$destinationDir,true);
$compressorUpdate->attachment_dir = $destinationDir;