Using bash to know if a directory is emptyghostbar·FollowPublished inghostbar·1 min read·Feb 13, 2017--ListenShareThings I have to learn at work:if [ ! -z "$(ls -A /path/to/check)" ]; then echo "Do things here cause it's empty"fi