Is this a bug of TFindFile class?
| Tue, 2007-07-10 12:24 | |
|
My folder structure is like this: C:\a.txt When I do TFindFile ::FindWildByPath( _L("*.txt"), &_L("C:\\test\\"), iDir ); I can only get b.txt by calling FindWild() afterwards. According to the SDK doc, the explaination of this function is like "Searches for one or more files in the directories contained in a path list.", but "C:\" is not in the list. What's more strange is if my folder structure is like: C:\test\a.txt And I do TFindFile ::FindWildByPath( _L("*.txt"), &_L("C:\\test\\test\\"), iDir ); What do you think, thanks. Taking you forward. |
|






Forum posts: 27
try loosing the ending "\\" in _L("C:\\test\\")
Forum posts: 27
I tried, it's the same. However, in SDK doc,
const TDesC *aPathList :
List of directories to search. Paths in this list must be separated by a semicolon character, but a semicolon is not required after the final path. The directories are searched in the order in which they occur in the list. Directories must be fully qualified, including a drive letter, and the name must end with a backslash.
Taking you forward.
Forum posts: 981
Strange...what sdk are you using there?
TFindFile ::FindWildByPath should give same results as RFs::GetDir().
Can you try the last one (for your first use case)
pirosl