From 8063d201fd8798b293621cbe2a09181709fc7d96 Mon Sep 17 00:00:00 2001 From: Logan <4197432+lsnow99@users.noreply.github.com> Date: Sun, 7 Aug 2022 21:26:27 -0400 Subject: [PATCH] use unix path separator --- cmd/dudu/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dudu/main.go b/cmd/dudu/main.go index 8e20574..7fc7080 100644 --- a/cmd/dudu/main.go +++ b/cmd/dudu/main.go @@ -233,7 +233,7 @@ func populateProject(projectName, rootFolder string) { populateProject(projectName, fullName) } else { // Create directory structure - relName := path.Join(strings.Split(fullName, string(os.PathSeparator))[1:]...) + relName := path.Join(strings.Split(fullName, "/")[1:]...) outFile := path.Join(projectName, relName) outPath, _ := path.Split(outFile)