TinySite.Commands.LoadDataFilesCommand.LoadDataFiles C# (CSharp) Method

LoadDataFiles() private method

private LoadDataFiles ( ) : IEnumerable
return IEnumerable
        private IEnumerable<DataFile> LoadDataFiles()
        {
            if (Directory.Exists(this.DataPath))
            {
                foreach (var path in Directory.GetFiles(this.DataPath, "*", SearchOption.AllDirectories))
                {
                    if (this.IgnoreFiles != null && this.IgnoreFile(path))
                    {
                        continue;
                    }

                    yield return this.LoadLayout(path);
                }
            }
        }