split files into subdirectories.