Merge pull request #25129 from nextcloud/bugfix/smb-notify-subpath

Fix files_external:notify command when running withing a subdirectory
This commit is contained in:
Vincent Petry 2021-03-19 14:53:16 +01:00 committed by GitHub
commit e6fd9b2f55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ class SMBNotifyHandler implements INotifyHandler {
*/
public function __construct(\Icewind\SMB\INotifyHandler $shareNotifyHandler, $root) {
$this->shareNotifyHandler = $shareNotifyHandler;
$this->root = $root;
$this->root = str_replace('\\', '/', $root);
}
private function relativePath($fullPath) {