private void FillTreeList(Directorys listtree) { // заполнить List<string> tree из FileTree files; for (int i = 0; i < listtree.subdirectorys.Count; i++) { tree.Add(listtree.subdirectorys[i].path); } for (int i = 0; i < listtree.files.Count; i++) { tree.Add(listtree.files[i]); } for (int i = 0; i < listtree.subdirectorys.Count; i++) { FillTreeList(listtree.subdirectorys[i]); } }
private void GetRights(string file, Directorys dir) { for (int i = 0; i < dir.filesRights.Count; i++) { if (dir.filesRights[i][0].Equals(file)) { string[] tmp = new string[dir.filesRights[i].Length - 1]; for (int q = 1; q < dir.filesRights[i].Length; q++) { tmp[q - 1] = dir.filesRights[i][q]; } if (tmp.Length != 0) { rightss = new string[tmp.Length]; rightss = tmp; } } } for (int e = 0; e < dir.subdirectorys.Count; e++) { GetRights(file, dir.subdirectorys[e]); } }