mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 13:59:49 -04:00
Update data files only if the contents have actually changed
This commit is contained in:
parent
a427d913e9
commit
0b852bc75a
@ -58,13 +58,13 @@ def pack(file, lines) {
|
|||||||
lines.each{ writer.append(it).append('\n') }
|
lines.each{ writer.append(it).append('\n') }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
log.warning "[NOT MODIFIED] $file [$previousHash]"
|
|
||||||
}
|
|
||||||
|
|
||||||
def rows = lines.size()
|
def rows = lines.size()
|
||||||
def columns = lines.collect{ it.split(/\t/).length }.max()
|
def columns = lines.collect{ it.split(/\t/).length }.max()
|
||||||
log.info "${file.canonicalFile} ($rows rows, $columns columns)"
|
log.info "${file.canonicalFile} ($rows rows, $columns columns)"
|
||||||
|
} else {
|
||||||
|
log.finest "[NOT MODIFIED] $file [$previousHash]"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def hash(file) {
|
def hash(file) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user