public override File New(string newfullPath) { string path = WebDavPath.Parent(newfullPath); var flist = Files .Select(f => f.New(WebDavPath.Combine(path, f.Name))) .ToList(); var spfile = new SplittedFile(flist); return(spfile); }
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); } }