I need to check if a directory has any files inside it, recursively, but don't care if there is empty sub directories.
I can't use the classic
[ "$(ls -A /E/Nuvem/Músicas)" ] && echo "Not Empty" || echo "Empty"
because it considers sub directories too.
I've tried check whole folder size, but each empty folder has 4kb. And I couldn't do anything with find
EDIT: I'm uploading files to the AWS S3 cloud and I don't need to send empty folders, I just keep them to help organize new files.