public SyncRoot AddRoot(string name) { name = name.ToFileNameValid(); if (RootList.ContainsKey(name)) { return(RootList[name]); } SyncRoot ret = new SyncRoot(); ret.ForestName = this.ForestName; ret.RootName = name; ret.RootPath = Path.Combine(this.ForestPath, name); GlobalHelper.CreateDirectory(ret.RootPath); RootList.Add(name, ret); return(ret); }