filebot/website/scripts/watcher.groovy

10 lines
288 B
Groovy
Raw Normal View History

// 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)
2011-12-20 02:39:33 +00:00
}
2011-12-01 17:06:51 +00:00
println "Waiting for events"
2011-12-20 02:39:33 +00:00
console.readLine() // keep running and watch for changes