path.toNamespacedPath(path)


仅在 Windows 系统上,为给定的 path 返回等效的 命名空间前缀路径。如果 path 不是字符串,将返回原始的 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.】

此方法仅在 Windows 系统上有意义。在 POSIX 系统上,该方法无效,并且总是返回未修改的 path

【This method is meaningful only on Windows systems. On POSIX systems, the method is non-operational and always returns path without modifications.】