How to use rmdirs remove empty subdirectories only?

Thanks for the answer! My workaround for now is putting an empty file in the root directory so that running rmdirs won’t remove it. I will make a new issue on github soon.

1 Like