filebot/website/scripts/watcher.groovy
2012-07-21 20:35:13 +00:00

10 lines
288 B
Groovy

// filebot -script fn:watcher /path/to/folder/ --output /output/folder/ --format <expression>
// watch folders and print files that were added/modified
args.watch { changes ->
rename(file:changes)
}
println "Waiting for events"
console.readLine() // keep running and watch for changes