Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handlePaths() function does not handle subdirectories correctly #296

Open
viveksahu26 opened this issue Jul 20, 2024 · 0 comments
Open

handlePaths() function does not handle subdirectories correctly #296

viveksahu26 opened this issue Jul 20, 2024 · 0 comments

Comments

@viveksahu26
Copy link
Collaborator

Actual Behaviour

Only files in the top-level directory are collected. Files within subdirectories are not included.

Expected Behaviour

The handlePaths function currently does not correctly handle paths that contain sub-directories. When a directory is provided, the function should collect all files, including those within sub-directories. However, it only collects files in the top-level directory.

Steps to Reproduce:

Create a directory with multiple files and at least one subdirectory containing additional files.
$ cd samples; mkdir subSample; cd subSample; and add a sbom here
Now run $ sbomqs score sample
It will only provide score for files present under sample but not under subSample dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant