i have been using the below code to have my files sorted by most space drive after checking if it is on a drive already or not, it seems to be putting shows that are already on another drive into a fresh folder on a different drive. i have not noticed this in the past can anyone see why this may be occuring.
Code: Select all
{['F:', 'G:', 'D:', 'K:'].collect{ (it+'/TV/'+n) as File }.sort{ a, b -> a.exists() <=> b.exists() ?: a.diskSpace <=> b.diskSpace }.last()}/{"Season ${s.pad(2)}"}/{s00e00} - {episode}