Example #1
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);
            }
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Folder" /> class.
 /// </summary>
 public Folder(string fullPath)
 {
     FullPath = WebDavPath.Clean(fullPath);
 }