This commit is contained in:
crazywhalecc
2022-09-23 12:50:44 +08:00
parent 87e3b2249c
commit fd05fe6e25
2 changed files with 15 additions and 23 deletions

View File

@@ -72,7 +72,7 @@ class FileSystem
{
// 适配 Windows 的多盘符目录形式
if (DIRECTORY_SEPARATOR === '\\') {
return strlen($path) > 2 && ctype_alpha($path[0]) && $path[1] === ':';
return !(strlen($path) > 2 && ctype_alpha($path[0]) && $path[1] === ':');
}
return strlen($path) > 0 && $path[0] !== '/';
}