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.
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.