#1 2026-06-17 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

#2 2026-06-18 06:18:19

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,510
Website

Re: FindFilesRtl - Mask with folder return wrong result

There should be no folder in mask.
It is not supported.

Offline

Board footer

Powered by FluxBB