relative

open fun relative(from: String, to: String): String

relative()

Determines the relative path between two paths.

This method variant accepts two string paths and returns a string path.

Return

The relative path as a string.

Parameters

from

The source path.

to

The target path.

See also


open fun relative(from: Path, to: Path): String

relative()

Determines the relative path between two paths.

This method variant accepts two Path objects and returns a String.

Return

The relative path as a string.

Parameters

from

The source path.

to

The target path.

See also


abstract fun relative(from: Path, to: Path): String

relative()

Determines the relative path between two paths.

This method variant accepts two NodePath objects and returns a String.

Return

The relative path as a string.

Parameters

from

The source path.

to

The target path.

See also