void RefreshDirectoryNameSet() { directoryNameSet.Clear(); foreach (var entity in fileSystem.GetEntities(path)) { if (entity.IsFile) { break; } directoryNameSet.Add(entity.EntityName); } }