public List <string> FindPublicGroups() { PublicGroups = FileMaster.GetDirectories(messenger.Server.PublicGroupPath) .Select(path => FileMaster.GetFileName(path)) .ToList(); return(PublicGroups); }
private bool CheckHavingGroup(string nameGroup, string path) { return((FileMaster.GetDirectories(path) ?? new string[0]) .Select(directoryPath => FileMaster.GetFileName(directoryPath)) .Contains(nameGroup)); }