_cygpath#

函数#

nt_to_posix(→ str)

一个 cygpath --unix 的备用实现。

_get_root(→ str)

_get_RE_WIN_ROOT(→ re.Pattern)

_to_unix_root(→ str)

_to_unix_mount(→ str)

_to_unix_drive(→ str)

translate_unix(→ str)

posix_to_nt(→ str)

一个 cygpath --windows 的备用实现。

_to_win_drive(→ str)

_to_win_mount(→ str)

_to_win_root(→ str)

_resolve_path(→ str)

resolve_paths(→ str)

属性#

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_root(prefix: str) str#
_get_RE_WIN_ROOT(prefix: str) re.Pattern#
_to_unix_root(match: re.Match) str#
RE_WIN_MOUNT#
_to_unix_mount(match: re.Match) str#
RE_WIN_DRIVE#
_to_unix_drive(match: re.Match, cygdrive: bool) str#
translate_unix(match: re.Match) str#
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#
_to_win_drive(match: re.Match) str#
RE_UNIX_MOUNT#
_to_win_mount(match: re.Match) str#
RE_UNIX_ROOT#
_to_win_root(match: re.Match, root: str) str#
_resolve_path(path: str, sep: str) str#
resolve_paths(paths: str, pathsep: str, sep: str) str#