To check if a directory exists in a shell script, you can use the following: if [ -d "$DIRECTORY" ]; then # Control will enter here if $DIRECTORY exists. fi.
確定! 回上一頁