ディレクトリの存在判定
code:sh
if -d your_dir_path ; then
...
fi