The File Organizer Tool provides a command-line interface for managing and organizing files. Below are the commands you can use to invoke different options within the tool.
-
Run the Tool:
- Execute the following command to run the file organizer tool.
python main.py
- Execute the following command to run the file organizer tool.
-
Selecting and Filtering Files:
- When prompted, enter filter values for file selection interactively.
Enter the path (Press enter to select the current path): /path/to/your/directory
- Input filter criteria for file size, filename, and extension as required.
- When prompted, enter filter values for file selection interactively.
-
Organizing Files:
-
After file selection, you will be prompted to choose an organization method:
-
Option 1: Rename Files In Place
Choose the method to reorganize: 1. Rename in-place 2. Rename and move to new folder 3. Delete Files : 1
-
Option 2: Rename and Copy to a New Folder
Choose the method to reorganize: 1. Rename in-place 2. Rename and move to new folder 3. Delete Files : 2
-
Option 3: Delete Files
Choose the method to reorganize: 1. Rename in-place 2. Rename and move to new folder 3. Delete Files : 3
-
-
-
Renaming Files In Place:
- If you chose option 1, enter a new filename when prompted.
Enter the value for 'filename' argument: new_file_name
- If you chose option 1, enter a new filename when prompted.
-
Rename and Copy to a New Folder:
- If you chose option 2, enter a new filename and folder name when prompted.
Enter the value for 'filename' argument: new_file_name Enter the value for 'folder-name' argument: /path/to/your/new/folder
- If you chose option 2, enter a new filename and folder name when prompted.
-
Deleting Files:
- If you chose option 3, confirm deletion by entering 'Y'.
Deleting 5 files, press Y to confirm: Y
- If you chose option 3, confirm deletion by entering 'Y'.
-
Renaming Files In Place:
python main.py Choose the method to reorganize: 1. Rename in-place 2. Rename and move to new folder 3. Delete Files : 1 Enter the value for 'filename' argument: new_file_name
-
Rename and Copy to a New Folder:
python main.py Choose the method to reorganize: 1. Rename in-place 2. Rename and move to new folder 3. Delete Files : 2 Enter the value for 'filename' argument: new_file_name Enter the value for 'folder-name' argument: /path/to/your/new/folder
-
Deleting Files:
python main.py Choose the method to reorganize: 1. Rename in-place 2. Rename and move to new folder 3. Delete Files : 3 Deleting 5 files, press Y to confirm: Y
- Follow the on-screen prompts to interactively navigate through the file organization process.
- Customize the commands based on your specific file organization requirements and directory paths.