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