Skip to main content

No project description provided

Project description

File Finder

This command-line tool searches for files using specific criteria within a given directory.

Installation

Before using the tool, make sure you have Python installed. Then, install the required dependencies:

pip install ffinder

Usage

ffinder --help
  • [PATH]: (optional) Path to the directory to search in. If not provided, the current directory will be used.
  • -k, --key: Required. Define a search key.
  • -v, --value: Required. Define a search value.
  • -r, --recursive: (optional) Perform a recursive search within subdirectories. Default is non-recursive.
  • -s, --save: (optional) Save a report in the current directory.
  • -c, --copy-to: (optional) Copy found files to the specified directory.

Example

ffinder -k ext -v .zip -r -s -c /zips

This command will search for all files named "example.txt" recursively starting from the current directory. It will save a report in the current directory and copy the found files to /path/to/copy.

Supported Search Keys

  • name: Search files by name.
  • extension: Search files by extension.
  • date modified: Search files by last modified date.

Notes

  • If no path is provided, the tool will search in the current directory.
  • If multiple files with the same name are found during copy operation, the tool will append a timestamp to the copied file's name to avoid overwriting.

Credits

This tool uses click for command-line interface, tabulate for tabular data formatting, and pathlib for file operations.

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

ffinder-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

ffinder-0.2.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file ffinder-0.2.0.tar.gz.

File metadata

  • Download URL: ffinder-0.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-56-generic

File hashes

Hashes for ffinder-0.2.0.tar.gz
Algorithm Hash digest
SHA256 dd8ce241d926d0905ff04c3dc4ed63b3d9fd301d73bc91426ea1513600383a41
MD5 cfb1bc5953db84e6a0b398d1bf3f5e33
BLAKE2b-256 0b7e579d3e3e8ead076a53dd072c6a27e1ab65687d67e4a19d8a4fa0fb1d8874

See more details on using hashes here.

File details

Details for the file ffinder-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: ffinder-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/5.15.0-56-generic

File hashes

Hashes for ffinder-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a8ff3ed53293d03800a360ae0972ef7f6ad0b5ad4065535c3bfb726878017a3
MD5 f0de26103f1bb84f3564b967126028e8
BLAKE2b-256 c21174f0a041c4a0cd73a84ae468ea133feca6e5fa21b28e4245a46cf156be6e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page