Un-Directories any directories that contain 1 file
+ ignores .info files
+ ignores .srt files (unless directed with "srt" argument)

Apollo 803247e6c5 Fixed it to properly remove directories once empty 10 months ago
LICENSE 53bde2e2f8 Initial commit 10 months ago
README.md 4516e022e0 v1.0) Should do everything we need it to do 10 months ago
go.mod 4516e022e0 v1.0) Should do everything we need it to do 10 months ago
main.go 803247e6c5 Fixed it to properly remove directories once empty 10 months ago

README.md

undir

Un-Directories any directories that contain 1 file

  • ignores .info files
  • ignores .srt files (unless directed with "srt" argument)

Install into PATH

Place the undir binary into one of the 2 path locations

Under Windows the binary will be undir.exe

Just close and re-open your Terminal/Command Prompt for this to take effect.

Linux

  • /home/<user_name>/bin

You may need to make that directory

Windows

maketecheasier talks about the windows path, and how to modify environment variables.

  • C:\Users\<user_name>\AppData\Local\Undir

You may need to make that directory