Vérifiez le répertoire en bash
[[ -d <directory> ]] && echo "This is a directory and it exist"
A-Siam
[[ -d <directory> ]] && echo "This is a directory and it exist"