<?php is_dir(string $filename): bool
<?php $backupPath = dirname($file).'/'.UpdateScript::BACKUP_PATH; if (! is_dir($backupDir = dirname($backupPath))) { mkdir($backupDir, 0777, true); }
<?php public function it_can_backup_lock_file_from_custom_location() { if (! is_dir($dir = './custom')) { mkdir($dir); }