Rename Folders
Posted: 18 Nov 2020, 05:12
How do I organize files into a nice file and folder structure?
Please configure {plex} as your preferred file and folder naming scheme via Double-Click <New Names> item ➔






e.g. reorganize episodes and delete left-behind empty folders:
Console Output: Select all
$ filebot -rename -r "/media/tv" --db TheMovieDB::TV --output "/media/tv" --format "{ ~plex.id }" --apply import prune
[MOVE] from [/media/tv/Alias/Alias - S01E01 - Truth Be Told.mkv] to [/media/tv/Alias {tmdb-2046}/Season 01/Alias - S01E01 - Truth Be Told.mkv]
[PRUNE] Delete empty folders (/media/tv/Alias)
e.g. reorganize movies and delete left-behind empty folders:
Console Output: Select all
$ filebot -rename -r "/media/movies" --db TheMovieDB --output "/media/movies" --format "{ ~plex.id }" --apply import prune
[MOVE] from [/media/movies/Avatar/Avatar (2009).mkv] to [/media/movies/Avatar (2009) {tmdb-19995}/Avatar (2009).mkv]
[PRUNE] Delete empty folders (/media/movies/Avatar)
How do I literally just rename folders?
If you want to literally just rename folders (as opposed to organizing the files inside) then you can use Folder Mode. In Folder Mode, each Folder item is treated as if it was a File item. A Folder item is processed as a single unit, just like a single file. The folder content is not touched, just like the file content.


Console Output: Select all
$ filebot -rename -d * --db TheMovieDB -non-strict --format "{ plex.id.dir.name }"
[MOVE] from [Avatar] to [Avatar (2009) {tmdb-19995}]


Format: Select all
{ ny }
Format: Select all
{ plex.id.dir.name }

