* reverse-rename only if path has changed
This commit is contained in:
parent
7b9896b67e
commit
018d4303c4
|
@ -9,7 +9,9 @@ def revert(from, to) {
|
|||
def action = net.sourceforge.filebot.StandardRenameAction.forName(_args.action)
|
||||
|
||||
println "[$action] Revert [$from] to [$to]"
|
||||
action.rename(from, to)
|
||||
if (!from.canonicalFile.equals(to.canonicalFile)) {
|
||||
action.rename(from, to) // reverse-rename only if path has changed
|
||||
}
|
||||
|
||||
// reset extended attributes
|
||||
tryQuietly{ to.xattr.clear() }
|
||||
|
|
Loading…
Reference in New Issue