What command can be used to check if a directory exists or not, within a Bash shell script?
Using the -e check will check for files and this includes directories.
-e
if [ -e ${FILE_PATH_AND_NAME} ] then echo "The file or directory exists." fi