split directory naming with index