Moving the files to appropriate folders