mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 15:02:30 +02:00
fix: harden opencode project file probes
This commit is contained in:
parent
629d4c0c61
commit
6d613f67dd
2 changed files with 47 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ export const ECCHooksPlugin: ECCHooksPluginFn = async ({
|
|||
|
||||
function hasProjectFile(relativePath: string): boolean {
|
||||
try {
|
||||
return fs.existsSync(resolvePath(relativePath))
|
||||
return fs.statSync(resolvePath(relativePath)).isFile()
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue