Project
ide
Description
During the validation/import scan, the validator attempts to traverse package-lock.json as if it were a folder/directory. In the repository, package-lock.json is a file (not a directory). This causes incorrect scanning behavior (and can lead to wrong “component not found / invalid” results).
Error Message
ENOTDIR: not a directory, scandir '<...>/package-lock.json'
Debug Logs
The full path the validator tried to recurse into for package-lock.json
The stack trace or the log line that mentions “scandir/readdir/walk” on package-lock.json
System Information
Screenshots
Steps to Reproduce
- Run the bounty validator/import scan on a project/repo containing a root package-lock.json
- Observe the validator traversal step
- It recurses/scans package-lock.json as if it were a folder
Expected Behavior
Validator recognizes package-lock.json is a file and does not recurse into it
Traversal continues with directories only
Actual Behavior
Validator attempts directory traversal on package-lock.json
Leads to incorrect validation results or traversal errors
Additional Context
The scan logic calls directory traversal (fs.readdirSync / scandir / recursive walk) without confirming the target path is a directory. Fix is to stat/check isDirectory() before recursing.
Project
ide
Description
During the validation/import scan, the validator attempts to traverse package-lock.json as if it were a folder/directory. In the repository, package-lock.json is a file (not a directory). This causes incorrect scanning behavior (and can lead to wrong “component not found / invalid” results).
Error Message
ENOTDIR: not a directory, scandir '<...>/package-lock.json'Debug Logs
The full path the validator tried to recurse into for package-lock.json The stack trace or the log line that mentions “scandir/readdir/walk” on package-lock.jsonSystem Information
Screenshots
Steps to Reproduce
Expected Behavior
Validator recognizes package-lock.json is a file and does not recurse into it
Traversal continues with directories only
Actual Behavior
Validator attempts directory traversal on package-lock.json
Leads to incorrect validation results or traversal errors
Additional Context
The scan logic calls directory traversal (fs.readdirSync / scandir / recursive walk) without confirming the target path is a directory. Fix is to stat/check isDirectory() before recursing.