Bash file exists. Bash файл. короткая запись if python. bash if. <?php $file = "images"; if(is_dir($file)) { echo ("$file is a directory"); } else { echo ("$file is not a directory"); ?>.