translate id of a resource into a nested folder structure
0000/000/00/1 for resource id 1
9000/900/90/9 for resource id 9999