Update apps/files_external/lib/sftp.php

Updated to using local 3rdparty + added a few missed braces.
remotes/origin/stable5
hkjolhede 13 years ago
parent 8598d18529
commit ab31c3ef4e
  1. 4
      apps/files_external/lib/sftp.php

@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
set_include_path(get_include_path() . PATH_SEPARATOR . OC::$THIRDPARTYROOT . '/3rdparty/phpseclib/phpseclib');
set_include_path(get_include_path() . PATH_SEPARATOR . OC_App::getAppPath('files_external') . '/3rdparty/phpseclib/phpseclib');
require('Net/SFTP.php');
class OC_Filestorage_SFTP extends OC_Filestorage_Common {
@ -122,6 +122,7 @@ class OC_Filestorage_SFTP extends OC_Filestorage_Common {
} catch (Exception $e) {
return false;
}
}
public function opendir($path) {
try {
@ -256,6 +257,7 @@ class OC_Filestorage_SFTP extends OC_Filestorage_Common {
} catch (Exception $e) {
return false;
}
}
public function stat($path) {
try {

Loading…
Cancel
Save