can we check the directory exist or not? code example
Example: check if a directory doesn't exist
PATH="./foo"
if [[ ! -d "$PATH" ]] ; then echo "$PATH not a dir" ; fi
PATH="./foo"
if [[ ! -d "$PATH" ]] ; then echo "$PATH not a dir" ; fi