Example #1
0
 /// <summary>
 /// Get the relative path to another file. If this path and the target path
 /// do not share the same provider, the target path is returned.
 /// </summary>
 /// <param name="target">The target file path.</param>
 /// <returns>A <see cref="FilePath"/>.</returns>
 public FilePath GetRelativePath(FilePath target)
 {
     return(RelativePathResolver.Resolve(this, target));
 }
Example #2
0
 /// <summary>
 /// Get the relative path to another directory. If this path and the target path
 /// do not share the same 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)
 {
     return(RelativePathResolver.Resolve(this, target));
 }