> > How can I check if a directory is empty? > use the "ls" command on the dir "man ls" Yes, but I need a script to act if there are files in a directory.