Skip to content

Commit

Permalink
FileSearcher: added ExpandFileName in the AddInput method
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdp committed May 16, 2022
1 parent a6267c0 commit 5aa234d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Base/JPL.FileSearcher.pas
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ function TJPFileSearcher.AddInput(const FileNameOrMask: string; RecurseDepth: in
Mask, Dir: string;
begin
Mask := ExtractFileName(FileNameOrMask);
Dir := ExtractFileDir(FileNameOrMask);
//Dir := ExtractFileDir(FileNameOrMask);
Dir := ExtractFileDir(ExpandFileName(FileNameOrMask));
Result := AddInput(Dir, Mask, RecurseDepth);
end;

Expand Down

0 comments on commit 5aa234d

Please sign in to comment.