This Python script organizes files in a specified folder by moving subdirectories to a folder named 'Folders' and creating directories based on file extensions.
-
Run the script from the command line or terminal: Replace
/path/to/your/folder
with the absolute path to the folder you want to organize. -
The script will create a 'Folders' directory and move subdirectories into it. Files will be organized based on their extensions.
- Python 3.x
-
Clone or download the repository.
-
Open a terminal or command prompt.
-
Navigate to the directory containing the script.
-
Run the script with the following command:
python main.py /path/to/your/folder
Replace /path/to/your/folder
with the absolute path to the folder you want to organize.
- Ensure you have the necessary permissions to modify the specified folder.