Moving the files into directories