Wrong behaviour of TFileSearcher.Search if ASearchPath is a list of paths
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
When suppplying a lsit of paths as the ASearchPath parameter for TFileSearcher.Search, it's behaviour is not as expected.
E.g. ASearchPath = 'c:;c:\users\bart' I would expect to get all files in both c:\ and in c:\users\bart.
However I only get the files in c:, because c:\users\bart is a subfolder of c:\
This behaviour is correct only if ASearchSubDirs is True IMO.
Steps to reproduce:
Build attached sample project.
Supply searchpath on commandline.
Mantis conversion info:
- Mantis ID: 27965
- OS: Window
- OS Build: Win7
- Build: r48757
- Platform: i386
- Version: 1.5 (SVN)
- Fixed in revision: r48858 (#b7277022)