mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(files_external): Drop deprecated BinaryFinder for smbclient
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
This commit is contained in:
parent
c4c5cf2d96
commit
75eba0374f
1 changed files with 2 additions and 1 deletions
|
|
@ -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'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue