예제 #1
0
        static void DoRecursiveWalk(string DirPath)
        {
            DirectoryInfo di  = new DirectoryInfo(DirPath);
            AbmFileReader afr = new AbmFileReader(di);

            afr.Read(false);
            afr.DumpToDataBase();
            string[] SubDirs = Directory.GetDirectories(DirPath);
            foreach (string SubDir in SubDirs)
            {
                DoRecursiveWalk(SubDir);
            }
        }
예제 #2
0
 static void DoRecursiveWalk(string DirPath)
 {
     DirectoryInfo di = new DirectoryInfo(DirPath);
     AbmFileReader afr = new AbmFileReader(di);
     afr.Read(false);
     afr.DumpToDataBase();
     string[] SubDirs = Directory.GetDirectories(DirPath);
     foreach (string SubDir in SubDirs)
     {
         DoRecursiveWalk(SubDir);
     }
 }