I would like movies to be moved on different drives depending on year.
For instance I have a drive /mnt/New Media/Movies/ where to place all movies that came out after 2012.
Or another one /mnt/Movies/Movies for movies that came out before year 2000.
And another /mnt/Movies 2/Movies for movies between 2000 and 2012.
How can i implement conditinal logic to move movies on correct drives?
Last edited by Catmal on 26 Jul 2018, 15:23, edited 1 time in total.
Let say I want all movies before 2012 to go to /mnt/Old Movies/Movies. /mnt/Old Movies is drive mounting point, Movies is the folder name. Movies will go in this folder without another folder for each single movie. Folder movies contains movie files. Final result is /mnt/Old Movies/Movies/Mission Impossible (1996).mkv.
All the other Movies should go to /mnt/New Movies/Movies. /mnt/New Movies/ is the mounting point and Movies is the folder. Final result is /mnt/New Movies/Movies/Unsane (2018).mkv.
You can of course write arbitrary code, or write your format as all code in a single {expression}, but that's not necessary in this simple use case, and would require basic Groovy skills.