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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2691b6effd9bbb8d9942c80c5a2239071a10a90b388af0462370d35402dd1db9
|
|
| MD5 |
a62d6a95a167b5f677e004d7b5bba4ac
|
|
| BLAKE2b-256 |
98e17ccebf78b8afe4cd61659cdbe8abe843eea666d17aaf8bddb8e34eb3f1af
|
Provenance
The following attestation bundles were made for file_stacker-0.1.0.tar.gz:
Publisher:
publish.yml on fferegrino/file-stacker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
file_stacker-0.1.0.tar.gz -
Subject digest:
2691b6effd9bbb8d9942c80c5a2239071a10a90b388af0462370d35402dd1db9 - Sigstore transparency entry: 731166158
- Sigstore integration time:
-
Permalink:
fferegrino/file-stacker@26d0157bc5567e41ef82ec8f48e1981e529aa95e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/fferegrino
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@26d0157bc5567e41ef82ec8f48e1981e529aa95e -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
543f70b478601e4994c4c62480f80f595e926b324f01a39469f4ae88086df0e8
|
|
| MD5 |
1ff35f7f88688c8a98b1538ee625fec7
|
|
| BLAKE2b-256 |
08c6c47f71f9911e701993b3f873dc67c73ca872281cebeb106f1de79b582803
|
Provenance
The following attestation bundles were made for file_stacker-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on fferegrino/file-stacker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
file_stacker-0.1.0-py3-none-any.whl -
Subject digest:
543f70b478601e4994c4c62480f80f595e926b324f01a39469f4ae88086df0e8 - Sigstore transparency entry: 731166160
- Sigstore integration time:
-
Permalink:
fferegrino/file-stacker@26d0157bc5567e41ef82ec8f48e1981e529aa95e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/fferegrino
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@26d0157bc5567e41ef82ec8f48e1981e529aa95e -
Trigger Event:
release
-
Statement type: