package dirsift

  1. Overview
  2. Docs
Search for directories by type

Install

Dune Dependency

Authors

Maintainers

Sources

v0.0.5.tar.gz
sha256=2d75af27a10ae570f503dd7ab26892ab50a00cb63faeb971dada3d25f6f36f80

Description

dirsift -t TYPE [PATH]

Subdirectories of PATH which satisfy specified TYPE requirements are listed

PATH defaults to . if unspecified

TYPE can be one of

  • git
    • Directory identified as git repository
  • not-git
  • borg
    • Directory identified as BorgBackup backup program repository
  • not-borg
  • restic
    • Directory identified as Restic backup program repository
  • not-restic
  • hidden
    • Name of directory begins with .
  • not-hidden
  • hot
    • Directory contains >=1 file last modified within past 7 days (7 x 24 hours)
    • User configurable
  • warm
    • Directory contains >=1 file last modified within past 30 days (30 x 24 hours), but not hot
    • User configurable
  • cold
    • Directory is neither hot nor warm
  • empty
  • not-empty

If multiple -t TYPE are specified, they are connected by and (conjunction), i.e. directory must satisfy all TYPE requirements to be listed

Published: 10 Dec 2021

README

dirsift

Search for directories by type

Installation

Statically linked binaries are available via GitHub releases

Alternatively you can install dirsift via opam

Usage

dirsift -t TYPE [PATH]

Subdirectories of PATH which satisfy specified TYPE requirements are listed

PATH defaults to . if unspecified

TYPE can be one of

  • git

    • Directory identified as git repository

  • not-git

  • borg

    • Directory identified as BorgBackup backup program repository

  • not-borg

  • restic

    • Directory identified as Restic backup program repository

  • not-restic

  • hidden

    • Name of directory begins with .

  • not-hidden

  • hot

    • Directory contains >=1 file last modified within past 7 days (7 x 24 hours)

    • User configurable

  • warm

    • Directory contains >=1 file last modified within past 30 days (30 x 24 hours), but not hot

    • User configurable

  • cold

    • Directory is neither hot nor warm

  • empty

  • not-empty

If multiple -t TYPE are specified, they are connected by and (conjunction), i.e. directory must satisfy all TYPE requirements to be listed

Configuration

Create a file at ~/.config/dirsift/config, add any number of the options from the example config as follows

hot_upper_bound = "7d"
warm_upper_bound = "30d"

Dependencies (10)

  1. dune-build-info
  2. timere-parse >= "0.0.5"
  3. timere >= "0.6.0"
  4. timedesc >= "0.5.1" & < "0.6.0"
  5. otoml >= "0.9.1"
  6. cmdliner
  7. fileutils
  8. containers >= "3.4"
  9. dune >= "2.7.0"
  10. ocaml >= "4.08.1"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.