pas2js: fixed globbing * ignoring . and ..

git-svn-id: trunk@37765 -
This commit is contained in:
Mattias Gaertner 2017-12-19 11:46:35 +00:00
parent 88a9d07820
commit effbafabd2

View File

@ -494,6 +494,7 @@ begin
Path:=LeftStr(Mask,p-1);
if FindFirst(Path,faAnyFile,Info)=0 then begin
repeat
if (Info.Name='') or (Info.Name='.') or (Info.Name='..') then continue;
Filename:=ExtractFilePath(Path)+Info.Name;
if p>length(Mask) then begin
// e.g. /path/unit*.pas