Beispiel #1
0
 public static void GetFilesInDirectory(string rootDirectory, string option , FileInfos fileinfo )
 {
     string[] fileList = Directory.GetFiles(rootDirectory, option, SearchOption.AllDirectories);
     for (int i = 0; i < fileList.Length; i++)
     {
         fileinfo.lstFiles.Add( ValidPath(fileList[i]) );
     }
 }
Beispiel #2
0
 public static int Find_Folder(string i_strPath, int i_nCount, FileInfos fileinfo)
 {
     string[] dirs = Directory.GetDirectories(i_strPath, "*.*");
     foreach (string dir in dirs)
     {
         if (dir.IndexOf(".svn") != 0) //svn 폴더 제외
         {
             continue;
         }
         ++i_nCount;
         fileinfo.lstDirs.Add(dir);
         i_nCount = Find_Folder( dir, i_nCount, fileinfo);
     }
     return i_nCount;
 }