rd

command module
v0.0.0-...-b8fd119 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

README

rd

Remove empty directories.

Installation

go install github.com/ppreeper/rd@latest

Or build from source:

go build -o rd .

Usage

rd [flags] [paths...]

If no paths are given, rd scans the current directory.

Flags

  • -n, --dry-run: count directories that would be removed
  • -v, --verbose: print the final removed count

Examples

rd .
rd -n ./src ./testdata
rd -v /tmp/project

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL