fix(files_external): Drop deprecated BinaryFinder for smbclient

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
This commit is contained in:
Josh Richards 2024-07-14 09:29:55 -04:00
parent c4c5cf2d96
commit 75eba0374f

View file

@ -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'];
}