summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-01-06 16:34:29 +0100
committerRobin Appelman <robin@icewind.nl>2017-01-27 10:44:45 +0100
commitd14ff700503ebef6cda27aae1dd348f75b093d09 (patch)
treef3b3bf6210f2a28492d1025b65d37c503abbac44 /apps/files_external/lib
parent72eeb8fd2267f1a4d319372c455e3fbd0539976f (diff)
downloadnextcloud-server-d14ff700503ebef6cda27aae1dd348f75b093d09.tar.gz
nextcloud-server-d14ff700503ebef6cda27aae1dd348f75b093d09.zip
add unit tests for smb notify backend
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index c73288f8cc2..690f8e2a334 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -499,6 +499,7 @@ class SMB extends Common implements INotifyStorage {
}
public function notify($path) {
+ $path = '/' . ltrim($path, '/');
$shareNotifyHandler = $this->share->notify($this->buildPath($path));
return new SMBNotifyHandler($shareNotifyHandler, $this->root);
}