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)