Organize files into directories