Split to directories