mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-21 06:59:51 +01: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);
|
Path:=LeftStr(Mask,p-1);
|
||||||
if FindFirst(Path,faAnyFile,Info)=0 then begin
|
if FindFirst(Path,faAnyFile,Info)=0 then begin
|
||||||
repeat
|
repeat
|
||||||
|
if (Info.Name='') or (Info.Name='.') or (Info.Name='..') then continue;
|
||||||
Filename:=ExtractFilePath(Path)+Info.Name;
|
Filename:=ExtractFilePath(Path)+Info.Name;
|
||||||
if p>length(Mask) then begin
|
if p>length(Mask) then begin
|
||||||
// e.g. /path/unit*.pas
|
// e.g. /path/unit*.pas
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user