示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }