Skip to main content

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

Project description

fsort-cli

fsort is a simple yet powerful terminal utility for viewing directory contents in an organized manner on your terminal window.

fsort lets you visualise the files in sorted order by name, size, or last modified date.

fsort provides a quick and convenient way to view files directly from the command line.

fsort does not actually modify/sort the files in the actual file system. It only reads the contents of the directory and displays the file name, size and last modified date in sorted order on terminal.

fsort Demo fsort Demo fsort Demo fsort Demo fsort Demo fsort Demo

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.7.0.tar.gz (977.8 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.7.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fsort_cli-0.7.0.tar.gz
  • Upload date:
  • Size: 977.8 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.7.0.tar.gz
Algorithm Hash digest
SHA256 c5cebcbfe8e0e45b72a1a2f89856a8577d6e848eaa0e0056dc4f824888d231ff
MD5 1034138a0498a12b1df6a00b4d366a50
BLAKE2b-256 33c8b16a30ae5bbfd19f7b4a5990505f9927b7cdbc346c53b8ea720c58a3ac5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fsort_cli-0.7.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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e72396be09328e85da320633ab25170e681873ded9be6caa7fd370033071e761
MD5 45249e782be9fa7c18e055f38813e774
BLAKE2b-256 13b9c51c4aa96d91574d0f6e4b3cacfecdf731eb1c373107eb9ac469b5519a54

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