Skip to content

Commit 63ce92a

Browse files
committed
Fix sync problem that could lead to unnecessary folder creates
1 parent 3c358bd commit 63ce92a

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

pkg/devspace/sync/evaluater.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ func shouldUpload(relativePath string, stat os.FileInfo, s *SyncConfig, isInitia
6161

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

7169
// Exclude symlinks

0 commit comments

Comments
 (0)