_cygpath#
函数#
|
一个 cygpath --unix 的备用实现。 |
|
|
|
|
|
|
|
|
|
|
|
|
|
一个 cygpath --windows 的备用实现。 |
|
|
|
|
|
|
|
|
|
属性#
- nt_to_posix(path: conda.common.path.PathType, prefix: conda.common.path.PathType | None, cygdrive: bool = False) str#
一个 cygpath --unix 的备用实现。
- 参数:
path -- 要转换的路径。
prefix -- 用于转换的 Windows 样式前缀目录。如果未提供,则不会进行根路径检查。
cygdrive -- 是否使用 Cygwin 风格的驱动器前缀。
- _get_RE_WIN_ROOT(prefix: str) re.Pattern#
- RE_WIN_MOUNT#
- RE_WIN_DRIVE#
- posix_to_nt(path: conda.common.path.PathType, prefix: conda.common.path.PathType | None, cygdrive: bool = False) str#
一个 cygpath --windows 的备用实现。
- 参数:
path -- 要转换的路径。
prefix -- 用于转换的 Windows 样式前缀目录。如果未提供,则不会进行根路径检查。
cygdrive -- 未使用。存在以保持与 nt_to_posix 的签名一致。
- RE_UNIX_DRIVE#
- RE_UNIX_MOUNT#
- RE_UNIX_ROOT#