File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
2222 */
2323
2424import { readdirSync } from "fs" ;
25- import { join , relative , resolve } from "path" ;
25+ import { join , relative } from "path" ;
2626
2727import type * as Factories from "../factories/index.node" ;
2828import { NamedLicense } from "../models/license" ;
@@ -49,6 +49,9 @@ export class LicenseEvidenceBuilder {
4949 * Returns undefined if it appears to bes no known text file.
5050 * Throws error, if license attachment content could not be fetched.
5151 *
52+ * If `relativeFrom` is given, the file is displayed relative from there,
53+ * else the full file name is displayed.
54+ *
5255 * @param file - path to file
5356 * @param relativeFrom - relative path reference for file display
5457 */
@@ -77,6 +80,10 @@ export class LicenseEvidenceBuilder {
7780 *
7881 * @param dir - path to inspect
7982 * @param relativeFrom - relative path reference for file display
83+ *
84+ * @remarks
85+ *
86+ * Utilizes {@link fromFile}.
8087 */
8188 public * fromDir ( dir : string , relativeFrom : string | undefined = undefined ) : Generator < NamedLicense > {
8289 // may throw if `readdirSync()` fails
You can’t perform that action at this time.
0 commit comments