mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
use the smbclient based backend to implement notify for the libsmbclient backend
This commit is contained in:
parent
862bf0825d
commit
e1b943bb8c
1 changed files with 4 additions and 1 deletions
|
|
@ -307,7 +307,10 @@ class NativeShare extends AbstractShare {
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function notify($path, callable $callback) {
|
public function notify($path, callable $callback) {
|
||||||
throw new \Exception('not implemented');
|
// php-smbclient does support notify (https://github.com/eduardok/libsmbclient-php/issues/29)
|
||||||
|
// so we use the smbclient based backend for this
|
||||||
|
$share = new Share($this->server, $this->getName());
|
||||||
|
$share->notify($path, $callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destruct() {
|
public function __destruct() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue