BooC.App.AddFilesForPath C# (CSharp) Method

AddFilesForPath() private method

private AddFilesForPath ( string path, CompilerParameters _options ) : void
path string
_options Boo.Lang.Compiler.CompilerParameters
return void
        void AddFilesForPath(string path, CompilerParameters _options)
        {
            foreach (string fname in Directory.GetFiles(path, "*.boo"))
            {
                if (!fname.EndsWith(".boo")) continue;
                _options.Input.Add(new FileInput(Path.GetFullPath(fname)));
            }

            foreach (string dirName in Directory.GetDirectories(path))
            {
                AddFilesForPath(dirName, _options);
            }
        }