Skip to content

Commit

Permalink
Merge pull request #1038 from LukasGentele/master
Browse files Browse the repository at this point in the history
fix: sync on windows
  • Loading branch information
Lukas Gentele committed Mar 27, 2020
2 parents 43bca3d + c2bce76 commit 4e25a2c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/devspace/services/sync.go
Expand Up @@ -126,14 +126,19 @@ func (serviceClient *client) startSyncClient(options *startClientOptions, log lo
syncConfig = options.SyncConfig
)

localPath := "."
if syncConfig.LocalSubPath != "" {
localPath = syncConfig.LocalSubPath
}

// check if local path exists
_, err := os.Stat(syncConfig.LocalSubPath)
_, err := os.Stat(localPath)
if err != nil {
if !os.IsNotExist(err) {
return err
}

err = os.MkdirAll(syncConfig.LocalSubPath, 0755)
err = os.MkdirAll(localPath, os.ModePerm)
if err != nil {
return err
}
Expand Down

0 comments on commit 4e25a2c

Please sign in to comment.