Skip to content

Commit

Permalink
Fix sync problem that could lead to unnecessary folder creates
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianKramm committed Sep 25, 2018
1 parent 3c358bd commit 63ce92a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/devspace/sync/evaluater.go
Expand Up @@ -61,11 +61,9 @@ func shouldUpload(relativePath string, stat os.FileInfo, s *SyncConfig, isInitia

// Check if we already tracked the path
if s.fileIndex.fileMap[relativePath] != nil {
// Folder already exists
// Folder already exists, don't send change
if stat.IsDir() {
// We want to initially walk over all files therefore we return true for a directory
// Later on a created directory locally that already exists in the fileMap should be ignored
return isInitial
return false
}

// Exclude symlinks
Expand Down

0 comments on commit 63ce92a

Please sign in to comment.