path.toNamespacedPath(path)
仅在 Windows 系统上,返回给定 path
的等效名称空间前缀路径。
如果 path
不是字符串,则将返回 path
而不进行修改。
此方法仅在 Windows 系统上有意义。
在 POSIX 系统上,该方法不可操作,并且始终返回 path
而不进行修改。
On Windows systems only, returns an equivalent namespace-prefixed path for
the given path
. If path
is not a string, path
will be returned without
modifications.
This method is meaningful only on Windows systems. On POSIX systems, the
method is non-operational and always returns path
without modifications.