public static IEnumerable <string> GetParents(string path, bool includeSelf = true) { path = WebDavPath.Clean(path); if (includeSelf) { yield return(path); } while (path != WebDavPath.Root) { path = WebDavPath.Parent(path); yield return(path); } }
/// <summary> /// Initializes a new instance of the <see cref="Folder" /> class. /// </summary> public Folder(string fullPath) { FullPath = WebDavPath.Clean(fullPath); }