MSysPathMapper

class MSysPathMapper(mSysRoot: Path) : PathMapper

Path mapper for MSys.

Handles 4 types of paths:

  • relative paths, such as path/to/file or path\to\file;

  • MSys-style absolute paths, such as /C/Windows;

  • Windows-style absolute paths, such as C:/Windows or C:\Windows;

  • Windows UNC paths, such as //wsl$/Debian or \\wsl$\Debian;

Parameters

mSysRoot

the root of MSys installation (run cygpath -w / to find out the value).

Constructors

Link copied to clipboard
constructor(mSysRoot: Path)

Properties

Link copied to clipboard
open override val fileSeparator: Char
Link copied to clipboard
open override val EnvPath.isAbsolute: Boolean

Functions

Link copied to clipboard
open override fun Path.toEnvironmentPath(): EnvPath

The effect is the same as the result of running cygpath -u.

Link copied to clipboard
open override fun EnvPath.toLocalPath(): Result<Path>

The effect is the same as the result of running cygpath -w.