|
@ -144,14 +144,19 @@ func GetFilesystemDiff() (map[int]string, map[int]string, error) { |
|
|
return dirtyFiles, newFiles, e |
|
|
return dirtyFiles, newFiles, e |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
counter = len(dirtyFiles) |
|
|
|
|
|
|
|
|
|
|
|
for _, file := range dirtyFiles { |
|
|
for _, file := range dirtyFiles { |
|
|
_, ok = newFilesTmp[file] |
|
|
_, ok = newFilesTmp[file] |
|
|
if !ok { |
|
|
|
|
|
newFiles[counter] = file |
|
|
|
|
|
|
|
|
if ok { |
|
|
|
|
|
delete(newFilesTmp, file) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
counter = len(dirtyFiles) |
|
|
|
|
|
|
|
|
|
|
|
for _, file := range newFilesTmp { |
|
|
|
|
|
newFiles[counter] = file |
|
|
|
|
|
counter++ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return dirtyFiles, newFiles, e |
|
|
return dirtyFiles, newFiles, e |
|
|
} |
|
|
} |