laishuxing 大佬有话说 :
宝塔+ next cloud 无法加载 网盘
宝塔+ next cloud 无法加载 网盘
挂载网盘时总是显示红色叹号,查日志:
导出日志
{"reqId":"9YlxSvz9JrMyQCmDFW0U","level":3,"time":"2021-08-14T01:16:29+00:00","remoteAddr":"219.135.26.220","user":"laishu","app":"PHP","method":"GET","url":"/index.php/apps/files_external/userglobalstorages/1?testOnly=false","message":"stat(): stat failed for /root/OneDrive/ at /www/wwwroot/i.inii.top/lib/private/Files/Storage/Local.php#145","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.133 Safari/537.36 Edg/92.0.902.67","version":"18.0.14.1","id":"61171981c1638"}
显示:
stat(): stat failed for /root/OneDrive/ at /www/wwwroot/i.inii.top/lib/private/Files/Storage/Local.php#145
请教各位大神指点下
laishuxing 大佬有话说 :
public function stat($path) {
clearstatcache();
$fullPath = $this->getSourcePath($path);
$statResult = stat($fullPath);
if (PHP_INT_SIZE === 4 && !$this->is_dir($path)) {
$filesize = $this->filesize($path);
$statResult[‘size’] = $filesize;
$statResult = $filesize;
}
return $statResult;