Fix a bug with smb notify having leading slash when it should not

Signed-off-by: Ari Selseng <ari@selseng.net>
This commit is contained in:
Ari Selseng 2019-03-01 13:55:52 +01:00 committed by Roeland Jago Douma
parent ad06248889
commit 3ce43ce3ce
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class Notify extends Base {
}
private function markParentAsOutdated($mountId, $path) {
$parent = dirname($path);
$parent = ltrim(dirname($path), '/');
if ($parent === '.') {
$parent = '';
}