Skip to main content

File Stacker - A command-line tool that organizes files by grouping them based on their creation time and copying them into timestamped folders.

Project description

File Stacker

A command-line tool that organizes files by grouping them based on their creation time and copying them into timestamped folders.

Description

File Stacker groups files with specified extensions by their creation time within a configurable tolerance window. Files created within the tolerance period are grouped together and copied into folders named with the start and end timestamps of that group.

This is particularly useful for organizing photos or files that were created in bursts (e.g., photo shoots, batch imports) where you want to keep related files together.

Installation

Using pip

pip install file-stacker

Using pipx (recommended for CLI tools)

pipx install file-stacker

Usage

Basic Usage

Stack files in the current directory with default settings (10 second tolerance, JPG and CR3 files):

file-stacker stack

Specify a Directory

Stack files in a specific directory:

file-stacker stack /path/to/directory

Custom Tolerance

Adjust the time tolerance window (in seconds):

file-stacker stack --tolerance 30

Custom File Extensions

Specify which file extensions to process:

file-stacker stack --extensions jpg png cr3 raw

Complete Example

Stack files in a directory with a 60-second tolerance, processing only RAW files:

file-stacker stack /path/to/photos --tolerance 60 --extensions cr3 raw

Options

  • path: Directory path to stack (default: current directory .)
  • --tolerance: Time difference in seconds to consider files as part of the same group (default: 10)
  • --extensions: File extensions to group by (default: ["jpg", "cr3"])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file_stacker-0.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file_stacker-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file file_stacker-0.1.0.tar.gz.

File metadata

  • Download URL: file_stacker-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for file_stacker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2691b6effd9bbb8d9942c80c5a2239071a10a90b388af0462370d35402dd1db9
MD5 a62d6a95a167b5f677e004d7b5bba4ac
BLAKE2b-256 98e17ccebf78b8afe4cd61659cdbe8abe843eea666d17aaf8bddb8e34eb3f1af

See more details on using hashes here.

Provenance

The following attestation bundles were made for file_stacker-0.1.0.tar.gz:

Publisher: publish.yml on fferegrino/file-stacker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file file_stacker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: file_stacker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for file_stacker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 543f70b478601e4994c4c62480f80f595e926b324f01a39469f4ae88086df0e8
MD5 1ff35f7f88688c8a98b1538ee625fec7
BLAKE2b-256 08c6c47f71f9911e701993b3f873dc67c73ca872281cebeb106f1de79b582803

See more details on using hashes here.

Provenance

The following attestation bundles were made for file_stacker-0.1.0-py3-none-any.whl:

Publisher: publish.yml on fferegrino/file-stacker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page