Deployment\SshServer::removeDir PHP Method

removeDir() public method

Removes directory from FTP server if exists.
public removeDir ( $dir ) : void
return void
    public function removeDir($dir)
    {
        if (file_exists($path = "ssh2.sftp://{$this->sftp}{$dir}")) {
            $this->protect('rmdir', [$path]);
        }
    }