I'm working on a CLI tool that avoids clobbering an existing directory with existing files but doesn't care if the directory doesn't exist or is empty.
I know I can use .exists() to see if the PathBuf points to an existing file/directory and .is_dir() to see if it is a directory, but how would I check to see if the directory is empty?