method

empty?

ruby latest stable - Class: Dir
empty?(p1)
public

Returns true if the named file is an empty directory, false if it is not a directory or non-empty.