Organise files into directories