This Python script organizes files from a source directory into respective destination directories based on file types.
- Python 3.x installed on your system.
-
Clone or download this repository to your local machine.
-
Open a terminal or command prompt and navigate to the directory where the script is located.
-
Run the script using the following command:
python __main__.py
- Open
__main__.py
in a text editor. - Set the
source_directory
anddestination_directory
variables to the paths of your source and destination directories, respectively. - Save the file.
- Run the script as mentioned in the Installation section.
- Organizes files into directories based on their types.
- Supports various file types including images, documents, videos, audio, compressed files, installers, data files, web files, databases, and others.
Suppose you have files in your Downloads
directory and you want to organize them:
if __name__ == '__main__':
source_directory = 'C:/Users/YourUsername/Downloads'
destination_directory = 'C:/Users/YourUsername/Downloads/Organized'
organize_files(source_directory, destination_directory)
Contributions are welcome! Please follow these guidelines:
- Fork the repository.
- Create your feature branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.