From 2f9d3ec8055775835f0366e7fb31c6757ff9cd22 Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Sun, 31 Aug 2025 16:41:01 -0400 Subject: [PATCH] Add support for Windows-style paths in `Path.isAbsolute()`. --- src/hxp/Path.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/hxp/Path.hx b/src/hxp/Path.hx index eb47285..2946975 100644 --- a/src/hxp/Path.hx +++ b/src/hxp/Path.hx @@ -110,6 +110,11 @@ class Path extends HaxePath public static function isAbsolute(path:String):Bool { + if (System.hostPlatform == WINDOWS && path.indexOf(":") == 1) + { + return true; + } + if (StringTools.startsWith(path, "/") || StringTools.startsWith(path, "\\")) { return true;