How can I check to see if a directory is empty or not in Ruby? Is there something like:
Dir.exists?(\"directory\")
(I know that that functi
Not straightforward but works perfect in *nix kind of systems.
Dir.entries(directory_path) == ['.', '..']