We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
排查了一下原因应该是第32行dir_opendir函数内
if (substr($this->url['path'], -1) == '/') $pathlen++;
多余了,导致readdir中截取的子文件名都是从第二个字符开始的
以及第35行的截取文件名操作
if ($pathlen > 0) $file['name'] = substr($file['name'], $pathlen);
对于根文件夹而言无法截取字符串,会导致根文件夹名值为false 建议对根文件夹名的截取返回值改为 “.” 以实现近似打开文件系统的效果
The text was updated successfully, but these errors were encountered:
No branches or pull requests
排查了一下原因应该是第32行dir_opendir函数内
if (substr($this->url['path'], -1) == '/') $pathlen++;
多余了,导致readdir中截取的子文件名都是从第二个字符开始的
以及第35行的截取文件名操作
if ($pathlen > 0) $file['name'] = substr($file['name'], $pathlen);
对于根文件夹而言无法截取字符串,会导致根文件夹名值为false
建议对根文件夹名的截取返回值改为 “.” 以实现近似打开文件系统的效果
The text was updated successfully, but these errors were encountered: