recipe/deployment/Files.php
public function checkFileRemote(string $file)
    {
        $response = run("if [ -f {{release_path}}/{$file} ]; then echo 'true'; fi");
        $status = $response->toBool();
        if (!$status) {
            writeln("<error>Can't find file: {{release_path}}/{$file} ... But continue!</error>");
        }
        return $status;
    }
public function checkFileRemote(string $file)
    {
        $response = run("if [ -f {{release_path}}/{$file} ]; then echo 'true'; fi");
        $status = $response->toBool();
        if (!$status) {
            writeln("<error>Can't find file: {{release_path}}/{$file} ... But continue!</error>");
        }
        return $status;
    }
public function checkFileRemote ( string $ file ) { $ response = run ( "if [ -f {{release_path}}/{$file} ]; then echo 'true'; fi" ) ; $ status = $ response -> toBool ( ) ; if ( ! $ status ) { writeln ( "<error>Can't find file: {{release_path}}/{$file} ... But continue!</error>" ) ; } return $ status ; }
Function for checking if a file exists (remote)

@param string $file The path string
@return bool Status if file exists
Function for checking if a file exists ( remote )