Pytocs.TypeInference.AnalyzerImpl.LoadFileRecursive C# (CSharp) Method

LoadFileRecursive() public method

Load all Python source files recursively if the given fullname is a directory; otherwise just load a file. Looks at file extension to determine whether to load a given file.
public LoadFileRecursive ( string fullname ) : void
fullname string
return void
        public void LoadFileRecursive(string fullname)
        {
            int count = countFileRecursive(fullname);
            if (loadingProgress == null)
            {
                loadingProgress = new Progress(this, count, 50, this.hasOption("quiet"));
            }

            string file_or_dir = fullname;

            if (FileSystem.DirectoryExists(file_or_dir))
            {
                foreach (string file in FileSystem.GetFileSystemEntries(file_or_dir))
                {
                    LoadFileRecursive(file);
                }
            }
            else
            {
                if (file_or_dir.EndsWith(suffix))
                {
                    LoadFile(file_or_dir);
                }
            }
        }