Giter Site home page Giter Site logo

zoek's Introduction

zoek - find files and directories

code coverage

zoek (Dutch for "search") is a Python library and command-line utility aiming to duplicate and extend the functionality of the find command-line utility.

Installation

pip can be used to install zoek:

pip install zoek

However, we recommend to install zoek using pipx:

pipx install zoek

Usage

zoek can be used as a command-line utility as follows:

pyfind <dir>

zoek currently supports the following flags:

  • --depth or -d to indicate the depth of directories and files to return (default: 1):
pyfind <dir> -d <int>
  • --startswith or -s to return files and directories starting with the provided string:
pyfind <dir> -s <str>
  • --contains or -c to return files and directories that contain the provided string:
pyfind <dir> -c <str>
  • --minsize or -m to filter output on size, a positive int returns files equal or larger, a negative int returns files smaller than input:
pyfind <dir> -m <int>
  • --datecreated or -dc to filter output on time created, a positive int returns files created more than int minutes ago, a negative int return files less than int minutes ago:
pyfind <dir> -dc <int>
  • --datemodified or -dm similar to --datecreated, but then for filtering date modified:
pyfind <dir> -dc <int>

As filters stack, multiple flags can be used simultaneously.

Contributing

Please refer to CONTRIBUTING.md

License

BSD-3

zoek's People

Contributors

kreeft avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.