1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

Interface for matching filenames only against a file mask

Among other to reduce confusing set of Matches overloads. Another benefit is that now all Matches overloads know, if the path is local or remote, what will be useful for upcoming relative/rooted path masks.

Source commit: a6a79218aeceb6dbc22a2ebe804effe277d43115
This commit is contained in:
Martin Prikryl
2021-12-08 15:08:45 +00:00
parent be19674074
commit 0cebfe10f7
8 changed files with 22 additions and 25 deletions

View File

@@ -636,7 +636,7 @@ TStrings * __fastcall TScript::CreateFileList(TScriptProcParams * Parameters, in
Params.Size = File->Size;
Params.Modification = File->Modification;
if (IsRealFile(File->FileName) &&
Mask.Matches(File->FileName, false, UnicodeString(), &Params))
Mask.MatchesFileName(File->FileName, false, &Params))
{
Result->AddObject(FileDirectory + File->FileName,
FLAGSET(ListType, fltQueryServer) ? File->Duplicate() : NULL);