MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_license_dirs

Function get_license_dirs

src/licensedcode/models.py:912–918  ·  view source on GitHub ↗

Return a list of all subdirectories containing license files within the input list of additional directories. These directories do not have to be absolute paths.

(additional_dirs)

Source from the content-addressed store, hash-verified

910
911
912def get_license_dirs(additional_dirs):
913 """
914 Return a list of all subdirectories containing license files within the
915 input list of additional directories. These directories do not have to be absolute paths.
916 """
917 additional_dirs = additional_dirs or []
918 return [f"{str(Path(path).absolute())}/licenses" for path in additional_dirs]
919
920
921def get_rule_dirs(additional_dirs):

Callers 2

load_or_buildMethod · 0.90
build_indexFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected