Answers for "zsh detect folder exists"

1

zsh check if directory exists

DIR_ABSOLUTE_PATH=/home/me/somedir
if [ -d "$DIR_ABSOLUTE_PATH" ]
then
    echo "$DIR_ABSOLUTE_PATH exists."
fi
Posted by: Guest on April-21-2021

Browse Popular Code Answers by Language