Deployment\SshServer::createDir PHP Method

createDir() public method

Creates directories on FTP server.
public createDir ( $dir ) : void
return void
    public function createDir($dir)
    {
        if (trim($dir, '/') !== '' && !file_exists("ssh2.sftp://{$this->sftp}{$dir}")) {
            $this->protect('ssh2_sftp_mkdir', [$this->sftp, $dir, 0777, TRUE]);
        }
    }