Ipalaus\Geonames\Commands\ImportCommand::fileExists PHP Метод

fileExists() защищенный Метод

Checks if a file already exists on a path. If the file contains .zip in the name we will also check for matches with .txt.
protected fileExists ( string $path, string $filename ) : boolean
$path string
$filename string
Результат boolean
    protected function fileExists($path, $filename)
    {
        if (file_exists($path . '/' . $filename)) {
            return true;
        }
        if (file_exists($path . '/' . str_replace('.zip', '.txt', $filename))) {
            return true;
        }
        return false;
    }