fix: Convert path in filepath.Walk to UNIX path

This commit is contained in:
Felicitas Pojtinger
2021-12-20 02:27:50 +01:00
parent 81426251d1
commit ead0f37858
2 changed files with 4 additions and 0 deletions

View File

@@ -113,6 +113,8 @@ var operationArchiveCmd = &cobra.Command{
errs := make(chan error)
go func() {
if err := filepath.Walk(viper.GetString(fromFlag), func(path string, info fs.FileInfo, err error) error {
path = filepath.ToSlash(path)
if err != nil {
return err
}

View File

@@ -103,6 +103,8 @@ var operationUpdateCmd = &cobra.Command{
errs := make(chan error)
go func() {
if err := filepath.Walk(viper.GetString(fromFlag), func(path string, info fs.FileInfo, err error) error {
path = filepath.ToSlash(path)
if err != nil {
return err
}