From 9ee7d0b718b6aa1d10b7ed66326dd0a6d7490a0f Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Thu, 14 Jan 2021 16:53:02 +0100 Subject: Fix files_external:notify command when running withing a subdirectory of the SMB share MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_external/lib') diff --git a/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php b/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php index 1570ba15573..e8c89979e89 100644 --- a/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php +++ b/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php @@ -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) { -- cgit v1.2.3