This Python script efficiently organizes files into separate folders based on specific identifiers in their filenames. It's designed to simplify the task of sorting large numbers of images into distinct categories, making file management more manageable and intuitive.
- Automatic Folder Creation: The script creates designated folders if they don't already exist, ensuring a smooth sorting process without manual folder setup.
- Customizable Sorting: Users can specify the identifiers and folder names, allowing for flexible organization tailored to different needs.
- Python environment (Python 3.x recommended)
shutil
andos
libraries (standard in Python)
Before running the script, ensure you have a settings/config.py
file with a config dictionary containing at least the APP_PATH_MAIN_FOLDER
key, which designates the base path for image organization.
-
Set Base Path: Define the base path for your images in the
settings/config.py
file underAPP_PATH_MAIN_FOLDER
. -
Customize Identifiers and Folder Names: In the script, set
FOLDER_NAME_1
,FOLDER_NAME_2
,IDENTIFIER_1
, andIDENTIFIER_2
to match your sorting criteria. -
Run the Script: Execute the script to start organizing your images:
python run.py
This project is open-sourced and available to everyone under the MIT License.