1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-10 19:35:15 -05:00
filebot/website/scripts/renall.groovy
Reinhard Pointner b638092409 * tuned basic -rename series/movie-mode decision logic
* update fn:renall to support --def target=folder option to easily rename folders specifically (only works for movie mode)
2012-10-22 12:31:15 +00:00

14 lines
455 B
Groovy

// filebot -script fn:renall <options> <folder> --def target=[file|folder]
/*
* Rename all tv shows, anime or movies folder by folder using given or default options.
*/
def target = tryQuietly{ target } ?: 'file' // target files by default
args.eachMediaFolder {
switch(target) {
case 'file' : return rename(folder:it) // rename files within each folder
case 'folder' : return rename(file :it) // rename folders as if they were files
}
}