Categorize files into folders