Fix CSV path joining and relative exclusions; add scan benchmark script

This commit is contained in:
Andy Dixon
2026-10-02 08:37:18 +01:00
parent 8559616b65
commit d7e1d3e620
5 changed files with 75 additions and 1 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import (
"encoding/json"
"fmt"
"io"
"path/filepath"
"strconv"
"time"
@@ -158,7 +159,7 @@ func CSV(w io.Writer, t *inventory.Tree, root inventory.NodeID, maxDepth int) er
return nil
}
for _, c := range t.SortedChildren(id, inventory.SizeAllocated) {
if err := rec(c, path+"/"+t.Node(c).Name, depth-1); err != nil {
if err := rec(c, filepath.Join(path, t.Node(c).Name), depth-1); err != nil {
return err
}
}