Skip to content

Commit

Permalink
Fix incorrect "exact path was deleted earlier"
Browse files Browse the repository at this point in the history
  • Loading branch information
quackduck committed Feb 15, 2021
1 parent b22566c commit 7be5256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rem.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func trashFile(path string) {
for ; existsInMap(m, path); i++ { // might be the same path as before
path = oldPath + " " + strconv.Itoa(i)
}
if i == 1 {
if i != 1 {
fmt.Println("A file of this exact path was deleted earlier. To avoid conflicts, this file will now be called " + color.YellowString(path))
}
m[path] = toMoveTo // logfile format is path where it came from ==> path in trash
Expand Down

0 comments on commit 7be5256

Please sign in to comment.