Ignore:
Timestamp:
Feb 25, 2007, 4:15:10 PM (18 years ago)
Author:
RBRi
Message:

file util refactoring and many more unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/GlobalSearchForm.pas

    r43 r82  
    143143  SysUtils,
    144144  DebugUnit,
    145   ACLFileUtility,
    146145  ACLDialogs,
    147146  ControlsUtility,
     
    153152  SearchDirectoriesFormUnit,
    154153  SettingsUnit,
    155   InformationFormUnit;
     154  InformationFormUnit,
     155  FileUtilsUnit;
    156156
    157157type
     
    517517    begin
    518518      Dir := StrLeftWithout( Dir, 3 );
    519       ListDirectoryRecursiveAdditive2( Dir,
     519      ListFilesInDirectoryRecursiveWithTermination(
     520                                       Dir,
    520521                                       '*.inf;*.hlp',
    521                                        Dir, // want full paths
    522522                                       Files,
    523                                        nil, // don't care to know subdirs
    524523                                       ThreadManager.StopRequested,
    525524                                       true ); // check termination
     
    527526    else
    528527    begin
    529       ListDirectoryAdditive( Dir,
    530                              '*.inf;*.hlp',
    531                              Dir, // want full paths
    532                              Files,
    533                              nil ); // don't care to know subdirs
     528      ListFilesInDirectory( Dir,
     529                            '*.inf;*.hlp',
     530                            Files);
    534531    end;
    535532  end;
Note: See TracChangeset for help on using the changeset viewer.