Metadata-Version: 2.3
Name: fsort-cli
Version: 0.3.0
Summary: Terminal program that sorts files by name/size/last-modified-date
Author: Sandeep Suryaprasad
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# fsort-cli

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

## Installation

```console
pip install fsort-cli
```

## Usage

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

You can specify the directory using `--path` cli argument
```console
fsort --path /path/to/directory
```

You can specify by what order the files need to be sorted using `--key` cli argument
```console
fsort --path /path/to/directory --key size

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

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

You can sort by specific file extension using `--file-extension` cli argument
```console
fsort --path /path/to/directory --key name --file-extension jpg

fsort --path /path/to/directory --key name --file-extension txt
```