DustyDirDetector is a Rust-based command-line tool that helps you identify inactive directories within your file system. It's a handy utility for keeping your directory structures clean and organized by detecting directories that haven't been modified for a specified period.
- Inactive Directory Detection: DustyDirDetector scans your specified directory structure to identify directories that haven't seen activity for a defined time frame.
- Command-Line Interface (CLI): Easily integrate DustyDirDetector into your workflow using its command-line interface.
To install DustyDirDetector, follow these steps:
-
Clone this repository or download the latest release from GitHub.
-
Navigate to the project directory.
-
Build the Rust project:
cargo build --release
Run the program:
./target/release/dusty-dir-detector
DustyDirDetector can be used with the following command-line options:
-
-p, --paths <PATHS>
: Specify one or more directory paths to check for inactive directories. You can provide multiple -p parameters. -
-i, --inactive-for <DURATION>
: Set the inactivity duration threshold to identify inactive directories. Specify the duration in a human-readable format (e.g., "30 days," "2 weeks," "3 months").
Check multiple directories for inactivity:
dusty-dir-detector -p /path/to/directory1 -p /path/to/directory2 -i "2 weeks"
Use the --paths
and --inactive-for
options to customize the directories and inactivity threshold according to your requirements.
dusty-dir-detector -p /path/to/directory1 -p /path/to/directory2 -i "3 months"
DustyDirDetector is licensed under the MIT License. See the LICENSE file for details.