interlynk-io / sbomqs

SBOM quality score - Quality metrics for your sboms
Apache License 2.0
158 stars 20 forks source link

handlePaths() function does not handle subdirectories correctly #296

Open viveksahu26 opened 1 month ago

viveksahu26 commented 1 month ago

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.