sort files into dirs