How do one verify that a directory is empty using an if else statement (script.sh). So far I use:
... but if there is hidden files or files that has a format like this (.file) BSD will not delete it.
Code:
if directory_not_empty
do_something
else
continue
How is this done?
Thanks in advance