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.1.tar.gz (9.8 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.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lite_sort-0.1.1.tar.gz
Algorithm Hash digest
SHA256 eaba429243df1cb73eb53469949c25b26b0d6c87b470d1995da6f3e55e435bf3
MD5 bfc12bf750fd15f155d2b799aad70874
BLAKE2b-256 b7cdc39833852571bf56842f796defa33da67956a05e3946e0e2fe79e4d12b85

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lite_sort-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d15f11617e3ae51e0328bc7d3b29b96f7210386a94783edafcd3fc2672018610
MD5 9bfbb60aa65884df91acba58e54eb1cd
BLAKE2b-256 49df1f5d3289ed3d63f09d3c7042321e4f8064039104f35787403925ec87f6d9

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