Skip to main content

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

lite_sort-0.1.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

lite_sort-0.1.2-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file lite_sort-0.1.2.tar.gz.

File metadata

  • Download URL: lite_sort-0.1.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for lite_sort-0.1.2.tar.gz
Algorithm Hash digest
SHA256 db489c305b8a181daff1f9cbf12e3be74f7c6a7f26627637db3f18cb150a25db
MD5 cfcb5a9fdc8a4ca08d1590732ea47a11
BLAKE2b-256 2b6d85dd0c5a9296bae096c598d77de6f8328c6c7760c614a461da88bba792ef

See more details on using hashes here.

File details

Details for the file lite_sort-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: lite_sort-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for lite_sort-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 321c31daa88a81ad2b29ba62feeddf9f81e5ea34ddec2dfad5d2afc593a4d2a6
MD5 2e9e1eda2b0648385c5119c8edb58551
BLAKE2b-256 8eed5f8ba5ccf0ace66aeb298b95b96ce52a15ad51073517ad5240351cbff756

See more details on using hashes here.

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