From 5acebb911be464c636fc7844f3048b65f9e6fefe Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 10 Feb 2017 18:04:59 +0100 Subject: fix self test for non leading slash Signed-off-by: Robin Appelman --- apps/files_external/lib/Command/Notify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files_external/lib/Command/Notify.php') diff --git a/apps/files_external/lib/Command/Notify.php b/apps/files_external/lib/Command/Notify.php index 55d7eef5823..6bb56373d33 100644 --- a/apps/files_external/lib/Command/Notify.php +++ b/apps/files_external/lib/Command/Notify.php @@ -199,9 +199,9 @@ class Notify extends Base { $foundSubfolderChange = false; foreach ($changes as $change) { - if ($change->getPath() === '/.nc_test_file.txt') { + if ($change->getPath() === '/.nc_test_file.txt' || $change->getPath() === '.nc_test_file.txt') { $foundRootChange = true; - } else if ($change->getPath() === '/.nc_test_folder/subfile.txt') { + } else if ($change->getPath() === '/.nc_test_folder/subfile.txt' || $change->getPath() === '.nc_test_folder/subfile.txt') { $foundSubfolderChange = true; } } -- cgit v1.2.3