PhpseclibSftp.php.dist 244 B

1234567891011
  1. <?php
  2. $sftp = new Net_SFTP('www.domain.tld');
  3. $sftp->login('username', 'password');
  4. $directory = '/some/directory';
  5. $sftp->delete($directory, true);
  6. $adapter = new Gaufrette\Adapter\PhpseclibSftp($sftp, $directory, true);
  7. return $adapter;