First thanks for very quick bug correction.
Now about my second request. I know its hard to work with. The only way it would always work is if each movie had it s directory(which is the case here). But you we cant work with that kind of solution. It must works for everyone.
The thing we could do is mark a dir as a group or a single movie.
let s take the example i gave.
You are treating the dir GroupMovie :
you see 2 dirs.
First you treate Movie1: you see it s not a group so you mark it as a "movie'
second you treat Movie2, same thing
You ve finished GroupMovie: you see you have 2 diff movies in it (because the dirs are marked as movie and not group) so you create a group GroupMovie.
This is a solution but i am not sure it fits your algorithm. What do you think?
Now about my second request. I know its hard to work with. The only way it would always work is if each movie had it s directory(which is the case here). But you we cant work with that kind of solution. It must works for everyone.
The thing we could do is mark a dir as a group or a single movie.
let s take the example i gave.
You are treating the dir GroupMovie :
you see 2 dirs.
First you treate Movie1: you see it s not a group so you mark it as a "movie'
second you treat Movie2, same thing
You ve finished GroupMovie: you see you have 2 diff movies in it (because the dirs are marked as movie and not group) so you create a group GroupMovie.
This is a solution but i am not sure it fits your algorithm. What do you think?