files sorted to directories