Skip to main content

Terminal program that displays file name, size and last-modified-date in sorted order

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 fsort fsort fsort fsort fsort

Installation

$ pip install fsort-cli
$ fsort --version
fsort 0.8.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.8.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.8.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fsort_cli-0.8.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.8.0.tar.gz
Algorithm Hash digest
SHA256 bde3d6d65eb991bc216c37f8b8188b450576b76ba34e0dafd811e58a67ee2053
MD5 ad36aa40716b4deeee552a34f1c06da8
BLAKE2b-256 8cef82a706a96d2aca1832e51314f98f0dda343780c5bc137370a727e2439744

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fsort_cli-0.8.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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d26135086d16e7f2472e6a66aa05c38a1898063ecbb29481cbee278d6467f93
MD5 2a67ad5ad0fab94044f2dab43d0c9e10
BLAKE2b-256 3fb44e50a0417a311ea07151ebf587ab3e7b3dc3535ff109630019f089eabdad

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