1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00
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