file_organizer
Little project I developed to help organize the misc files for my family PCs
The program flows like this:
- Define the following directories directly in the source code
input_dir
output_dir
- The program will begin to traverse the input_dir
- The program is smart enough to traverse nested directories. Recursive calls to run_main will be used to traverse nested directories
- The program will sort your data according to the handler functions. The handler functions define the names of the nested output directories to create
- More complex handler modules exist for file types with lots of metadata, like images. Most handler functions are simple method calls with str return at the moment
Required setup:
- Install python
- python -m pip install --upgrade pip
- python -m pip install Pillow
Program Files:
- app_logger.py - Logging solution
- util_functions.py - OS calls, Debug printer, Duplicte file handler
- handler_functions.py - Determine file type and invoke correct file processor, non-image file processors
- image_handler.py - Called by handler_functions.py for files with "image" type extensions (defined in handler_functions)
- file_organizer.py - Main invocation, folder definitions/setup, loop through directory for processing images (recursively as needed)