public function createFtpDriver(array $config)
    {
        $ftpConfig = Arr::only($config, [
            'host', 'username', 'password', 'port', 'root', 'passive', 'ssl', 'timeout',
        ]);

        return $this->adapt($this->createFlysystem(
            new FtpAdapter($ftpConfig), $config
        ));
    }
public function createFtpDriver(array $config)
    {
        $ftpConfig = Arr::only($config, [
            'host', 'username', 'password', 'port', 'root', 'passive', 'ssl', 'timeout',
        ]);

        return $this->adapt($this->createFlysystem(
            new FtpAdapter($ftpConfig), $config
        ));
    }
public function createFtpDriver ( array $ config ) { $ ftpConfig = Arr :: only ( $ config , [ 'host' , 'username' , 'password' , 'port' , 'root' , 'passive' , 'ssl' , 'timeout' , ] ) ; return $ this -> adapt ( $ this -> createFlysystem ( new FtpAdapter ( $ ftpConfig ) , $ config ) ) ; }
Create an instance of the ftp driver.

@param  array  $config
@return \Sirius\Filesystem\FilesystemAdapter
Create an instance of the ftp driver .