Sort/group files by their file-type
Project description
lite-sort
lite-sort is a simple program to collect and sort files in a given directory into directories
matching (or relevant to) their filetype. Filetype is typically determined by the file's extension,
but falls back to using file header to resolve files without extensions. Written with Python3+
Install (may require a venv)
$ pip install lite-sort
Examples
$ lite-sort file1.txt file2.pdf file3.zip
~/Documents
\_ txt/
\_ pdf/
\_ zip/
Usage: lite-sort [options] [files]
With no files provided, sorts files starting from the current directory and its subdirectories.
OPTIONS:
-s, --search-dir START_DIR search directory, where files to be sorted are searched
-d, --dest-dir DEST_DIR destination directory, where files to be sorted are moved to
-D, --max-depth DEPTH maximum filesystem directory depth to search for files
-f, --file-list FILE file containing list of files to be sorted, files in this
list will be merged with the [files] passed as arguments
-h, --help display this help and exit
-m, --move move the files instead of copying them
-v, --version output version information and exit
-V, --verbose verbose output
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
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 lite_sort-0.1.3.tar.gz.
File metadata
- Download URL: lite_sort-0.1.3.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42f9256f031f2e6e7074b3e46f83091f0cbd2925a8664b12de52af824fd90be9
|
|
| MD5 |
26f88aecd4cb12f4fccb137ce9dd962c
|
|
| BLAKE2b-256 |
07ec615cbe40811dedb6b95fb3d841f983fcd610a3e7e6f149fc884e2d1b35a7
|
File details
Details for the file lite_sort-0.1.3-py3-none-any.whl.
File metadata
- Download URL: lite_sort-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae7d95a8dfc26529bcf00fbcacd02ddc29abc7005af33ea642204ee706aa6223
|
|
| MD5 |
af24b92d39c9fdd48a03b7cdc486e0d4
|
|
| BLAKE2b-256 |
bf4d054e1b35d1c4dcb6da036507de57674d6456c3b3858a2f00e778414f0d23
|