예제 #1
0
 /// <summary>
 /// Called when recursive is false, evaluates the input to see if search is really
 /// required or not, only using the file scanner when a wildcard is present in the
 /// input
 /// </summary>
 private void BuildFileListIntelligently()
 {
     // for each input that "appears" to be a file mask (either a file name or a file wildcard)
     // gather the file names)
     foreach (string fileMask in _fileArgs)
     {
         if (-1 < fileMask.IndexOfAny(_osWildCards))
         {
             BuildFileListForMask(fileMask);
         }
         else
         {
             DefaultScanForFilesData nextFile = new DefaultScanForFilesData();
             nextFile.FileInfo = new FileInfo(fileMask);
             _listOfFiles.Add(nextFile);
         }
     }
 }
예제 #2
0
 /// <summary>
 /// Called when recursive is false, evaluates the input to see if search is really
 /// required or not, only using the file scanner when a wildcard is present in the
 /// input
 /// </summary>
 private void BuildFileListIntelligently()
 {
     // for each input that "appears" to be a file mask (either a file name or a file wildcard)
     // gather the file names)
     foreach (string fileMask in _fileArgs)
     {
         if (-1 < fileMask.IndexOfAny(_osWildCards))
         {
             BuildFileListForMask(fileMask);
         }
         else
         {
             DefaultScanForFilesData nextFile = new DefaultScanForFilesData();
             nextFile.FileInfo = new FileInfo(fileMask);
             _listOfFiles.Add(nextFile);
         }
     }
 }