mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 01:19:07 +02:00
pas2js: fixed globbing * ignoring . and ..
git-svn-id: trunk@37765 -
This commit is contained in:
parent
88a9d07820
commit
effbafabd2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user