From 9ee7d0b718b6aa1d10b7ed66326dd0a6d7490a0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 14 Jan 2021 16:53:02 +0100 Subject: [PATCH] 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(-) diff --git a/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php b/apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php index 1570ba155735e..e8c89979e892a 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) {