Skip to main content

fsort-cli

Development Status PyPI version Python versions

Unit tests

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

Metadata

Release files for fsort-cli 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fsort-cli 0.9.1
File Size Uploaded
fsort_cli-0.9.1.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fsort-cli 0.9.1
File Interpreter ABI Platform
fsort_cli-0.9.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.4 kB

Release files / fsort_cli-0.9.1.tar.gz

Download URL fsort_cli-0.9.1.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9e42db9007a762d88725727b8b18c40aeef81ce3d74e3aa1cec624894e7810f9
BLAKE2b-256 checksum
How to use checksums
8a14eff6374f4bb000b3ce28d547f5eb6aa661c22adbbe4387bea3278bc1348e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / fsort_cli-0.9.1-py3-none-any.whl

Download URL fsort_cli-0.9.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc24a994900107da78bb52cdaca06b05738754bf8739c3067e6919be438ace22
BLAKE2b-256 checksum
How to use checksums
a7205fb230ad461b8d3d6e54eeaa109c0f8059746cc1c89d6204c26832557ca0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

This release

0.9.1 This release

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page