Find and organize anything on your system
Project description
fdir
Find and organize anything on your system
Features
- List all files and folders in the current directory
- Filter files by:
- Last modified date (
--gt,--lt) - File size (
--gt,--lt) - Name keywords (
--keyword,--swith,--ewith) - File type/extension (
--eq)
- Last modified date (
- Sort results by:
- Name, size, or modification date (
--order <field> <a|d>)
- Name, size, or modification date (
- Use and/or
- Delete results (
--del) - Convert results to a different extension (
--convert, available for thetypeoperation) - Search approximately (
--fuzzy) - Search the content of files
- Field highlighting in yellow (e.g. using the
modifiedoperation would highlight the printed dates)- With partial highlighting for the
nameoperation
- With partial highlighting for the
- Hyperlinks to open matching files
- Heatmap size field letter coloring (blue -> red)
- Add .fdirignore to your directory to make fdir ignore certain files, directories or extensions
- Execute another command (
--exec)
Examples
fdir modified --gt 1y --order name a # Show files older than 1 year, in the ascending order by name
fdir size --lt 100MB --order modified d # Show files smaller than 100MB, in the descending order by modified
fdir name --keyword report --order size a --deep # Show files containing the "report" keyword, in the ascending order by size, and search recursively
fdir type --eq .wav --order name d --convert .mp3 # Show files with the ".wav" extension, in the descending order by name, and convert them to ".mp3"
fdir all --order modified a # Show all files in the ascending order by modified
fdir modified --gt 1y or size --gt 1gb --del # Show files older than 1 year old larger than 1GB, and delete them
Usage
fdir <operation> [options] [--order <field> <a|d>]
Operations
| Operation | Flags | Description |
|---|---|---|
modified |
--gt | --lt <time> |
Filter files by last modified date |
size |
--gt | --lt <size> |
Filter files by file size |
name |
--keyword | --swith | --ewith <pattern> |
Filter files by name |
type |
--eq <extension> |
Filter files by file extension |
all |
— | List all files and directories |
version |
— | Display the installed version of fdir |
content |
--keyword <pattern> |
Search the content of textual files |
Time Units (modified)
| Unit | Meaning |
|---|---|
h |
Hours |
d |
Days |
w |
Weeks |
m |
Months (approx. 30 days) |
y |
Years (approx. 365 days) |
Size Units (size)
| Unit | Meaning |
|---|---|
B |
Bytes |
KB |
Kilobytes |
MB |
Megabytes |
GB |
Gigabytes |
Name Flags (name)
| Flag | Description |
|---|---|
--keyword |
Filename contains the pattern |
--swith |
Filename starts with the pattern |
--ewith |
Filename ends with the pattern |
Type Flags (type)
| Flag | Description |
|---|---|
--eq |
Match exact file extension (include the dot, e.g. .py) |
Additional flags
| Flag | Description |
|---|---|
--order |
Sort files in a specific order |
--deep |
Search recursively |
--top |
Print only the first certain amount of matches |
--fuzzy |
Search approximately (make fdir support typos) |
--exec |
Execute another command |
--nocolor |
Don't color the output |
Installation
pip
pip install fdir-cli
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
fdir_cli-3.2.1.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fdir_cli-3.2.1.tar.gz.
File metadata
- Download URL: fdir_cli-3.2.1.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21233674b96343c73cbe77d00b170feeaf47e32af434cf034cb2095802bd0d62
|
|
| MD5 |
4b6b56eeb47989cc8c4bc54e3e7233c8
|
|
| BLAKE2b-256 |
8fe94b299625511a5d2dfd1d819af9465bd597b37d6ae44c720fbf6ced252210
|
File details
Details for the file fdir_cli-3.2.1-py3-none-any.whl.
File metadata
- Download URL: fdir_cli-3.2.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ee62cbe26d9f5f1ed591f8578d5029f394c79eeadef2a0d04450c36a8f8e9e3
|
|
| MD5 |
edc3c3b3e7dd5c50f822006ef88887ac
|
|
| BLAKE2b-256 |
b4bd10ef7919e35e4aac2326b749813ef43714e8752195f48c539ece6cba69b2
|