As you undoubtedly know, the rmdir command will remove an empty directory but, if a directory contains files, it will balk and report “Directory not empty”. To remove directories which are in fact ...
I’m not exactly sure how this came about, but I recently found myself with a directory that didn’t contain the standard “.” and “..” directories that would have properly tied it into the file system.