Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

zsh check if directory exists

DIR_ABSOLUTE_PATH=/home/me/somedir
if [ -d "$DIR_ABSOLUTE_PATH" ]
then
    echo "$DIR_ABSOLUTE_PATH exists."
fi
 
PREVIOUS NEXT
Tagged: #zsh #check #directory #exists
ADD COMMENT
Topic
Name
1+5 =