浏览代码

UNC paths are absolute paths as well (#6061)

derRaab 8 年之前
父节点
当前提交
1c86fc873a
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 	}