Split files into nested and unnested