Browse Source

UNC paths are absolute paths as well (#6061)

derRaab 8 năm trước cách đây
mục cha
commit
1c86fc873a
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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 {
 		if (StringTools.startsWith(path, '/')) return true;
 		if (path.charAt(1) == ':') return true;
+		if (StringTools.startsWith(path, '\\\\')) return true;
 		return false;
 	}