diff --git a/src/applications/diffusion/query/pathid/DiffusionPathIDQuery.php b/src/applications/diffusion/query/pathid/DiffusionPathIDQuery.php index bcb3c6f3f0..62e42e579c 100644 --- a/src/applications/diffusion/query/pathid/DiffusionPathIDQuery.php +++ b/src/applications/diffusion/query/pathid/DiffusionPathIDQuery.php @@ -63,7 +63,11 @@ final class DiffusionPathIDQuery { */ public static function getParentPath($path) { $path = self::normalizePath($path); - return dirname($path); + $path = dirname($path); + if (phutil_is_windows() && $path == '\\') { + $path = '/'; + } + return $path; }