/// <summary> /// Get the relative path to another file. /// </summary> /// <param name="target">The target file path.</param> /// <returns>A <see cref="FilePath"/>.</returns> public FilePath GetRelativePath(FilePath target) => RelativePathResolver.Resolve(this, target);
/// <summary> /// Get the relative path to another directory. If this path and the target path /// do not share the same file provider, the target path is returned. /// </summary> /// <param name="target">The target directory path.</param> /// <returns>A <see cref="DirectoryPath"/>.</returns> public DirectoryPath GetRelativePath(DirectoryPath target) => RelativePathResolver.Resolve(this, target);