瀏覽代碼

possibly could just be an idiot

Zach 9 月之前
父節點
當前提交
fa9fadbb84
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      detect/directory.go

+ 4 - 1
detect/directory.go

@@ -43,7 +43,7 @@ func (d *Detector) detectScanTarget(scanTarget sources.ScanTarget) error {
 	logger.Trace().Msg("Scanning path")
 	logger.Trace().Msg("Scanning path")
 
 
 	// skipping windows archives for now
 	// skipping windows archives for now
-	if isArchive(scanTarget.Path) && !isWindows {
+	if isArchive(scanTarget.Path) {
 		logger.Debug().Msg("Found archive")
 		logger.Debug().Msg("Found archive")
 
 
 		targets, tmpArchiveDir, err := extractArchive(scanTarget.Path)
 		targets, tmpArchiveDir, err := extractArchive(scanTarget.Path)
@@ -125,7 +125,10 @@ func (d *Detector) detectScanTarget(scanTarget sources.ScanTarget) error {
 			if scanTarget.Symlink != "" {
 			if scanTarget.Symlink != "" {
 				fragment.SymlinkFile = scanTarget.Symlink
 				fragment.SymlinkFile = scanTarget.Symlink
 			}
 			}
+
 			if isWindows {
 			if isWindows {
+				fragment.FilePath = filepath.ToSlash(scanTarget.Path)
+				fragment.SymlinkFile = filepath.ToSlash(fragment.SymlinkFile)
 				fragment.WindowsFilePath = scanTarget.Path
 				fragment.WindowsFilePath = scanTarget.Path
 			}
 			}