функция Path::relativeTo

Синтаксис

Path
Path.relativeTo
(Path base)

Передаваемые параметры

Path base

Возвращаемое значение

Path

Описание

/** * Returns a path relative such that * base.join(relative) == this.canonicalize(). * Throws an exception if such a path is impossible. * For example, if [base] is '../../a/b' and [this] is '.'. * The computation is independent of the file system and current directory. */

Официальная документация (английский)