Update apps/files_external/lib/sftp.php

Updated to using local 3rdparty + added a few missed braces.
This commit is contained in:
hkjolhede 2012-12-27 21:00:20 +01:00
parent 8598d18529
commit ab31c3ef4e
1 changed files with 3 additions and 1 deletions

View File

@ -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 {