split to directory