Folder Extractor

A BioZnum Tool

The Folder Extractor is a simple yet powerful Python tool designed to automatically move all your photos and videos from a folder (and its subfolders) to a centralized location. It’s ideal for quickly and efficiently organizing your multimedia files!

Key Features:

Automatic detection of photo and video files (common formats: .jpg, .mp4, etc.).
Handles subfolders to consolidate all your files in one place.
Intelligent renaming to prevent file name conflicts.
Easily customizable for different use cases.

How to Use:

Download the script and open it in a text editor.

Replace the paths of the source_dir and destination_dir variables with your own locations.
Run the script using Python

Example Usage:

Source: C:\MyPhotos\Vacation
Destination: D:\OrganizedPhotos

Once executed, all your photos and videos will be moved and consolidated into D:\OrganizedPhotos!

Why Use It?

This script is open-source, free to use, and perfectly aligns with BioZnum’s values of sharing and collaboration. Simplify your digital life while contributing to a more eco-responsible future!

Storyboard: How the Folder Extractor Works

Step 1: Define the Paths

User Input: Open the script and replace the values of the source_dir (source folder) and destination_dir (destination folder) variables with your own paths.
Example:Source: C:\Users\Name\Documents\Photos
Destination: C:\Users\Name\OneDrive\OrganizedPhotos

Step 2: Identify Files

Internal Process: The script scans the source folder (and its subfolders) for files with defined extensions like .jpg, .png, .mp4, etc.
Visual Example: Icons representing photo/video files selected from various subfolders.

Step 3: Create the Destination Folder

Script Action: If the destination folder doesn’t exist, the script creates it automatically.
Visual Example: Animation of a folder named « OrganizedPhotos » being created.

Step 4: Traverse Through Files

Internal Process: The script iterates through the identified files and starts moving them to the destination folder.
Visual Example: Arrows showing files moving from multiple folders to one centralized folder.

Step 5: Resolve Name Conflicts

Scenario: If two files share the same name, the script appends a suffix (_1, _2, etc.) to avoid overwriting.
Visual Example:Before: Two photo.jpg files in separate folders.
After: photo.jpg and photo_1.jpg in the destination folder.

Step 6: Move Files

Script Action: Files are physically moved from the source folder to the destination folder.
Visual Example: Animation of a file disappearing from its original location and reappearing in the destination folder.

Step 7: Display Progress

User Output: For each moved file, the script displays a message in the console.

Example:

Moved: C:\Users\Name\Documents\Photos\Vacation\image1.jpg -> C:\Users\Name\OneDrive\OrganizedPhotos\image1.jpg

Step 8: Final Result

Output: All files are centralized in the destination folder, ready for further use or sorting.
Visual Example: A view of the destination folder filled with organized photos and videos.

Important Disclaimer



While the
ideas and concepts shared here are innovative and exciting, they remain
theoretical and untested. We strongly encourage creativity and experimentation;
however, any attempt to recreate or implement these systems should be done with
**extreme caution**.

BioZnum and its affiliates cannot be held responsible for any outcomes,
damages, or accidents that may occur if you decide to experiment at home. **We
highly recommend conducting thorough research and small-scale tests** before
attempting to build or install any larger system.

In short, these ideas are meant to inspire, but they must be carefully tested
and verified on a small scale before moving forward. **Safety should always be
a top priority**, and we encourage consulting professionals when necessary.