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+

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lite_sort-0.1.tar.gz
Algorithm Hash digest
SHA256 eaad0627eeaac0876743fb07d1900df664431b7789827cbd0be469483c8843a9
MD5 ba42f3d4acf1083bcdab3b2e05dcb7b6
BLAKE2b-256 32b01d4b5729f3e0910b04a01d352b26dbd4a2885a906106de56a560fd7de23a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lite_sort-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0fe4e9d0d0fca617f562ac66bc43f18f9f02842d649ef16c7eb62b72f33d684f
MD5 23ae01b3ccf7b80e4840affd268b17a9
BLAKE2b-256 c53804258be94347f683abefd4f69c42f1554235ead4e98e53921b241396aced

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