Skip to content

yemelyanow-ross/cli-fs-searcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]
PARAMETER required description
DIR required base lookup directory
PATTERN optional regular expression to test file/directory name
MIN-SIZE optional minimum file size [B|K|M|G], should be skipped for directories
MAX-SIZE optional maximum file size [B|K|M|G], should be skipped for directories
TYPE optional [D|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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published