Move last two episodes from directory in Python?
<p>So, let's say I have 10 files in a directory, they are named:</p>

<pre>
N 221
N 222
N 225
N 227
N 228
P 09
P 10
P 11
</pre>

<p>I was able to extract the name ("N", "P") and the episode numbers. However, I am unable to figure out a good way to figure out the last two episodes of each series and then move the rest of the folders into an "old" folder. Any help is appreciated.</p>
