From fa9fadbb8481f49f68b28f660a7aa4b0a299c6ae Mon Sep 17 00:00:00 2001 From: Zach Date: Tue, 13 May 2025 22:06:12 -0500 Subject: [PATCH] possibly could just be an idiot --- detect/directory.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/detect/directory.go b/detect/directory.go index dfe1df57..31e6a13a 100644 --- a/detect/directory.go +++ b/detect/directory.go @@ -43,7 +43,7 @@ func (d *Detector) detectScanTarget(scanTarget sources.ScanTarget) error { logger.Trace().Msg("Scanning path") // skipping windows archives for now - if isArchive(scanTarget.Path) && !isWindows { + if isArchive(scanTarget.Path) { logger.Debug().Msg("Found archive") targets, tmpArchiveDir, err := extractArchive(scanTarget.Path) @@ -125,7 +125,10 @@ func (d *Detector) detectScanTarget(scanTarget sources.ScanTarget) error { if scanTarget.Symlink != "" { fragment.SymlinkFile = scanTarget.Symlink } + if isWindows { + fragment.FilePath = filepath.ToSlash(scanTarget.Path) + fragment.SymlinkFile = filepath.ToSlash(fragment.SymlinkFile) fragment.WindowsFilePath = scanTarget.Path }