提交 3993564f 编写于 作者: A alanb

7034532: (fs) AssertionError when working directory is UNC

Reviewed-by: forax, mduigou
上级 e6afd818
......@@ -56,8 +56,9 @@ class WindowsFileSystem
// parse default directory and check it is absolute
WindowsPathParser.Result result = WindowsPathParser.parse(dir);
if (result.type() != WindowsPathType.ABSOLUTE)
throw new AssertionError("Default directory must be absolute/non-UNC");
if ((result.type() != WindowsPathType.ABSOLUTE) &&
(result.type() != WindowsPathType.UNC))
throw new AssertionError("Default directory is not an absolute path");
this.defaultDirectory = result.path();
this.defaultRoot = result.root();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册