From 0cc76a00d75d1bfb30376123ad1af72de1ab4504 Mon Sep 17 00:00:00 2001 From: Anudeep Reddy Date: Mon, 13 Nov 2023 19:53:15 +0530 Subject: [PATCH] fixed duplicate attachments with dump on windows --- cmd/dump.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dump.go b/cmd/dump.go index 97f292ae09643..69ecdcec1244d 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -452,7 +452,7 @@ func addRecursiveExclude(w archiver.Writer, insidePath, absPath string, excludeA return err } for _, file := range files { - currentAbsPath := path.Join(absPath, file.Name()) + currentAbsPath := filepath.Join(absPath, file.Name()) currentInsidePath := path.Join(insidePath, file.Name()) if file.IsDir() { if !util.SliceContainsString(excludeAbsPath, currentAbsPath) {