The File_and_Folder_Organizer is a Python script designed to help you efficiently organize a large number of files into a structured folder hierarchy. It's particularly useful when you have a substantial number of files to manage and want to divide them into manageable groups for better organization and easier access.
-
Automatic Folder Creation: The script automatically creates folders with a customizable naming pattern.
-
Bulk File Distribution: It moves files from a source directory into the newly created folders, ensuring each folder contains a specified maximum number of files (default: 9998).
-
User-Friendly: The script prompts the user to input the number of files to be organized and the source directory containing the files to be moved.
- Run the script.
- Enter the number of files you want to organize.
- Provide the source directory containing the files to be organized.
- The script will create the necessary folders and distribute files accordingly.
Suppose you have 30,000 files to organize. The script will create four folders (by default) with up to 9998 files each:
civitai_wildcard_prompt_1
civitai_wildcard_prompt_2
civitai_wildcard_prompt_3
civitai_wildcard_prompt_4
This makes managing large collections of files much more efficient.
- Python 3.x
- The
shutil
andmath
modules are used, but they are part of the Python standard library.
-
Clone this repository to your local machine.
-
Open a terminal or command prompt.
-
Navigate to the directory where the script is located.
-
Run the script using the
python
command:python File_and_Folder_Organizer.py