We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31f2260 commit 44c1a9eCopy full SHA for 44c1a9e
urlwatcher/Sources/urlwatcher/main.swift
@@ -169,7 +169,11 @@ for entry in config {
169
if fileManager.fileExists(atPath: diffFile) {
170
try fileManager.removeItem(atPath: diffFile)
171
}
172
- try fileManager.moveItem(atPath: tempDiff, toPath: diffFile)
+ // The temp file could not exist, in case we only report a change due to size difference
173
+ // (then the compare command never successfully compared the files)
174
+ if fileManager.fileExists(atPath: tempDiff) {
175
+ try fileManager.moveItem(atPath: tempDiff, toPath: diffFile)
176
+ }
177
178
// Generate detailed NCC information
179
let nccFile = "\(entryPath)/\(nccFilename)"
0 commit comments