_cygpath#

Functions#

nt_to_posix(→ str)

A fallback implementation of 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)

A fallback implementation of cygpath --windows.

_to_win_drive(→ str)

_to_win_mount(→ str)

_to_win_root(→ str)

_resolve_path(→ str)

resolve_paths(→ str)

Attributes#

nt_to_posix(path: conda.common.path.PathType, prefix: conda.common.path.PathType | None, cygdrive: bool = False) str#

A fallback implementation of cygpath --unix.

Parameters:
  • path -- The path to convert.

  • prefix -- The Windows style prefix directory to use for the conversion. If not provided, no checks for root paths will be made.

  • cygdrive -- Whether to use the Cygwin-style drive prefix.

_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#

A fallback implementation of cygpath --windows.

Parameters:
  • path -- The path to convert.

  • prefix -- The Windows style prefix directory to use for the conversion. If not provided, no checks for root paths will be made.

  • cygdrive -- Unused. Present to keep the signature consistent with 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#