fCraft.InfoCommands.GetReqSectionList C# (CSharp) Method

GetReqSectionList() private method

private GetReqSectionList ( ) : IEnumerable
return IEnumerable
        private static IEnumerable<string> GetReqSectionList()
        {
            if ( Directory.Exists( Paths.ReqPath ) ) {
                string[] sections = Directory.GetFiles( Paths.ReqPath, "*.txt", SearchOption.TopDirectoryOnly )
                                             .Select( name => Path.GetFileNameWithoutExtension( name ) )
                                             .Where( name => !String.IsNullOrEmpty( name ) )
                                             .ToArray();
                if ( sections.Length != 0 ) {
                    return sections;
                }
            }
            return null;
        }