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.6.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.6.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.6.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fsort_cli-0.6.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.6.0.tar.gz
Algorithm Hash digest
SHA256 9cd493e674809564d051b00d8e35bf9fb8ebf6432fd1180bb00bc936934f3ec1
MD5 fb13c3ac1cce0d7f60371a238d51dfff
BLAKE2b-256 e8950286e14c8c7d89b68bbb281122450bd2e5a064356e2111c42d34569b5361

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fsort_cli-0.6.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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 49a572f16f42c09921082c1d6f5178af3f475e68bc34a79177e3b7c012ec4f53
MD5 13f9729f815482954b95d020830bd04d
BLAKE2b-256 c5d2553524e5a6b263678824784bf4864aef345a0869650f5a3a2c2d6da040f4

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