Browse Source

UNC paths are absolute paths as well (#6061)

derRaab 8 years ago
parent
commit
1c86fc873a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      std/haxe/io/Path.hx

+ 1 - 0
std/haxe/io/Path.hx

@@ -301,6 +301,7 @@ class Path {
 	public static function isAbsolute ( path : String ) : Bool {
 	public static function isAbsolute ( path : String ) : Bool {
 		if (StringTools.startsWith(path, '/')) return true;
 		if (StringTools.startsWith(path, '/')) return true;
 		if (path.charAt(1) == ':') return true;
 		if (path.charAt(1) == ':') return true;
+		if (StringTools.startsWith(path, '\\\\')) return true;
 		return false;
 		return false;
 	}
 	}