private IEnumerable <IRemoteFolder> GetAncestors() { for (int i = 0; i < PathParts.Length; i++) { string path = string.Join(PathSeparator.ToString(), PathParts.Take(i + 1)); yield return(new SimpleRemoteFolder(path, PathSeparator, RootPath)); } }