This simple python scripts helps you to automate the work of copying all the files of single types under different directories into a single directory.
- Download the script.py file on to your local system.
- Open the script.py file.
- Set the source directory path to current_dir. For Ex: 'C:/' - This checks your entire C Drive.
- Set the destination directory path to destination_dir. For Ex: 'D:/' - The files will be copied here.
- Set the extension types you want to search to extensions. For Ex: '.srt', '.mp4', '.mp3' etc.
- Run the script.py file.
- Voila! The files are copied to the destination directory.