Skip to main content

Find and organize anything on your system

Project description

fdir

Find and organize anything on your system

fdir demo

GitHub Downloads (all assets, latest release) Latest Release GitHub Repo stars GitHub License


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)
  • Sort results by:
    • Name, size, or modification date (--order <field> <a|d>)
  • Use and/or
  • Delete results (--del)
  • Convert results to a different extension (--convert, available for the type operation)
  • Search approximately (--fuzzy)
  • Search the content of files
  • Field highlighting in yellow (e.g. using the modified operation would highlight the printed dates)
    • With partial highlighting for the name operation
  • 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

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)

Installation

Windows

  1. Download the "fdir.exe" file from the Releases tab.
  2. Create a new folder in %USERPROFILE% on your computer.
  3. Paste the downloaded "fdir.exe" file into that folder.
  4. Copy the path of that folder.
  5. Put the path of that folder into your system's PATH (run setx PATH "%PATH%;C:\path\to\fdir_folder" (replace the path with your actual path)).

Linux

  1. Download the "fdir" file from the Releases tab.
  2. Go to the downloaded "fdir" file's folder (run cd path/to/your/folder (replace the path with your actual path)).
  3. Copy that path into ~/.local/bin (run cp fdir ~/.local/bin).

MacOS

Sorry, not available yet.

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.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fdir_cli-3.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file fdir_cli-3.2.0.tar.gz.

File metadata

  • Download URL: fdir_cli-3.2.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for fdir_cli-3.2.0.tar.gz
Algorithm Hash digest
SHA256 16d233881523550848b0f6c9aacf8e9c7fd09d73b93e6d88489fa205f6877062
MD5 b094c5bdf160954c8e2b13a00b0be88d
BLAKE2b-256 57681d723bc0c45854d733142055603e74be4d19214745d1188e34d84b1020c9

See more details on using hashes here.

File details

Details for the file fdir_cli-3.2.0-py3-none-any.whl.

File metadata

  • Download URL: fdir_cli-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for fdir_cli-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc889b66c5fedeeff183b04a364c371e833a6ee011b14ae373b81fb55539f1a2
MD5 ce9376405f40ce8b5da29faf71000965
BLAKE2b-256 509421a197e04001d946b2a28431de49008fed344329dcc34f5ad1dab9e5056f

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