mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-18 07:17:16 -07:00
Co-authored-by: Tommaso Sciortino <sciortino@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c0d5ab1f1e
commit
8e58df72c6
@@ -105,7 +105,10 @@ export class IgnoreFileParser implements IgnoreFileFilter {
|
||||
.slice()
|
||||
.reverse()
|
||||
.map((fileName) => path.join(this.projectRoot, fileName))
|
||||
.filter((filePath) => fs.existsSync(filePath));
|
||||
.filter(
|
||||
(filePath) =>
|
||||
fs.statSync(filePath, { throwIfNoEntry: false })?.isFile() ?? false,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user