1.0.1 • Published 6 years ago

cli-fs-searcher v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

cli-fs-searcher

Recursively walk through the filesystem, searching for files and directories while optional filtering.

Installation

Install using npm:

npm i -g cli-fs-searcher

Usage

Run in the terminal:

cli-fs-searcher --[PARAMETER]=[ARGUMENT]
PARAMETERrequireddescription
DIRrequiredbase lookup directory
PATTERNoptionalregular expression to test file/directory name
MIN-SIZEoptionalminimum file size B|K|M|G, should be skipped for directories
MAX-SIZEoptionalmaximum file size B|K|M|G, should be skipped for directories
TYPEoptionalD|F D - directory, F - file

(B - bytes, K - kilobytes, M - megabytes, G - gigabytes)

!!! Parameters order is not strict! Any order should work!!!

Example

cli-fs-searcher --PATTERN=\.txt --MIN-SIZE=40B --MAX-SIZE=40K --TYPE=F --DIR=/home/rostislav/Downloads

License and Copyright

This software is released under the terms of the ISC license.