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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user