Answers for "can we check the directory exist or not?"

1

check if a directory doesn't exist

PATH="./foo"
if [[ ! -d "$PATH" ]] ; then echo "$PATH not a dir" ; fi
Posted by: Guest on April-16-2021

Code answers related to "can we check the directory exist or not?"

Browse Popular Code Answers by Language