/// <summary> /// Returns a full path instance as the combination of this full path with /// <paramref name="relativePath"/> appened at the end. /// </summary> public FullPath Combine(RelativePath relativePath) { return(new FullPath(PathHelpers.CombinePaths(_path, relativePath.Value))); }
/// <summary> /// Returns <code>true</code> if this path is <paramref name="childPath"/> or a /// parent of <paramref name="childPath"/>. /// </summary> public static bool ContainsPath(this FullPath path, FullPath childPath) { return(PathHelpers.IsPrefix(path.Value, childPath.Value)); }
public static bool IsValid(string path) { return(PathHelpers.IsAbsolutePath(path)); }
/// <summary> /// Returns a new relative path instance by appending <paramref name="name"/> to this instance. /// </summary> public RelativePath CreateChild(string name) { return(new RelativePath(PathHelpers.CombinePaths(Value, name), name)); }