Recursively sorts files based on type (pictures, documents, video, scripts)