Skip to main content

Terminal program that sorts files by name/size/last-modified-date

Project description

fsort-cli

A lightweight command-line utility for sorting files in a directory by file name, file size, or last modified date.

Installation

$ pip install fsort-cli
$ fsort --version
fsort 0.5.0

Usage

By default fsort sorts the files in the current working directory by file "name"

fsort

You can specify the directory using --path CLI argument

fsort --path /path/to/directory

You can specify by what order the files need to be sorted using --key CLI argument

Mac/Linux:

fsort --path /path/to/directory --key size

fsort --path /path/to/directory --key date

fsort --path /path/to/directory --key name

NOTE: Windows users please enclose the directory path in quotes. For Mac/Linux users wrapping the directory path in quotes is not mandatory. Windows:

fsort --path "C:\path\to\directory" --key size

fsort --path "C:\path\to\directory" --key date

fsort --path "C:\path\to\directory" --key name

You can sort specific file types using --file-extension CLI argument.

Usage

Sort only those files with jpg extension by "name"

fsort --path /path/to/directory --key name --file-extension jpg

Sort only those files with txt extension by "size"

fsort --path /path/to/directory --key size --file-extension txt

Sort only those files with png extension by "last modified date"

fsort --path /path/to/directory --key date --file-extension png

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

fsort_cli-0.5.0.tar.gz (977.5 kB view details)

Uploaded Source

Built Distribution

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

fsort_cli-0.5.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file fsort_cli-0.5.0.tar.gz.

File metadata

  • Download URL: fsort_cli-0.5.0.tar.gz
  • Upload date:
  • Size: 977.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for fsort_cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 fb94b315184b1b6fcc52842fcb1ccdeabcb6901267a2e4f1ed6730beb7f57d39
MD5 643200a7b1f249b9b1eb483afc9ea2a4
BLAKE2b-256 94ae5b0b4d31cd3cf892cd0d53ab11ad04cf2d2223ee4f558b40cc460d2bbe7a

See more details on using hashes here.

File details

Details for the file fsort_cli-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: fsort_cli-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for fsort_cli-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f3bbab08ef02a8f98413f1fbd0570fe837ceb4eaccc7d5bf6e5eb8ba0fc7d8f3
MD5 c73c6b7fdd0f8d27c0633cc3a3cb6958
BLAKE2b-256 aaf4284ac0019e8baff8268de924d9adc9d6f3cec882769f79015edf350c7f52

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