#1 Today 11:10:50

tfopc
Member
Registered: 2024-01-08
Posts: 51

FindFilesRtl - Mask with folder return wrong result

For example

- Start-Folder: "TestFiles\"
- Mask: "Subfolder\*.jpg"

FindFilesRtl - count/search (FindFirst/FindNext) is ok, but the entry in Files-Array missing the subpath.

Result is:

TestFiles\abc.jpg
instead of
TestFiles\Subfolder\abc.jpg


I think "fold" must be updated/concat with ExtractPath(mask) or the FindFirst - input "name" should be used to build the result - filename.

FYI: FindFirst allow some wired inputs, i also don't know about (until yesterday) ...

C:FileDirTest\*.jpg - DriveRelative search from last working dir on drive.

Don't expect somebody use the "DriveRelative" search mask, but the Subfolder in the search mask is maybe used.

Offline

Board footer

Powered by FluxBB