aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 066d0d08f5b..d3b06e2e4a9 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -36,6 +36,7 @@ use OCP\Files\NotPermittedException;
use OCP\Files\Storage\INotifyStorage;
use OCP\Files\StorageAuthException;
use OCP\Files\StorageNotAvailableException;
+use OCP\IBinaryFinder;
use Psr\Log\LoggerInterface;
class SMB extends Common implements INotifyStorage {
@@ -715,7 +716,7 @@ class SMB extends Common implements INotifyStorage {
*/
public static function checkDependencies() {
return (
- (bool)\OC_Helper::findBinaryPath('smbclient')
+ (bool) \OCP\Server::get(IBinaryFinder::class)->findBinaryPath('smbclient')
|| NativeServer::available(new System())
) ? true : ['smbclient'];
}