mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 14:55:09 -05:00
14 lines
267 B
Groovy
14 lines
267 B
Groovy
|
// filebot -script fn:xattr --action clear /path/to/files
|
||
|
|
||
|
args.getFiles{ it.xattr.size() > 0 }.each{
|
||
|
println it
|
||
|
it.xattr.each{ k, v ->
|
||
|
println "\t$k: $v"
|
||
|
}
|
||
|
// clear xattr mode
|
||
|
if (_args.action == 'clear') {
|
||
|
it.xattr.clear()
|
||
|
println '*** CLEARED ***'
|
||
|
}
|
||
|
}
|