Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Smart-Archive (v1)

A Python-based file management and automated archiving script designed to scan directories, filter out already compressed files, and systematically bundle items into zip archives based on custom size thresholds.

Features

  • Recursive Directory Traversal: Deeply crawls target directories to catalog files and folders into an execution queue.
  • Smart Extension Filtering: Automatically detects and skips existing compressed archives (such as .zip, .gz, .7z, and .rar) to prevent redundant packaging.
  • Threshold-Based Archiving: Evaluates individual file sizes and cumulative directory volumes against predefined limits to trigger automated compression routines.
  • Storage Analytics: Calculates storage deltas upon completion, outputting a summary of zipped items and total bytes saved.

Technologies Used

  • Language: Python
  • Standard Libraries:
  • os: For file system navigation, path resolution, and fetching file sizes.
  • sys: For system-level operations.
  • zipfile: For programmatically creating and managing archive packages.

How It Works

  1. Run the script and input your target directory path when prompted.
  2. The script isolates the directory, maps out all non-archived files and folders, and checks them against size constraints.
  3. Items exceeding specific size limits are bundled into structured zip archives, and a final summary reports the total storage saved.

About

This python script will automate the process of zipping files/folders based on several criteria.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors