apps/files_external/lib/Lib/Notify/SMBNotifyHandler.php 1 location
|
@@ 55-63 (lines=9) @@
|
| 52 |
|
$this->root = $root; |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
private function relativePath($fullPath) { |
| 56 |
|
if ($fullPath === $this->root) { |
| 57 |
|
return ''; |
| 58 |
|
} else if (substr($fullPath, 0, strlen($this->root)) === $this->root) { |
| 59 |
|
return substr($fullPath, strlen($this->root)); |
| 60 |
|
} else { |
| 61 |
|
return null; |
| 62 |
|
} |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
public function listen(callable $callback) { |
| 66 |
|
$oldRenamePath = null; |
apps/files_external/lib/Lib/Storage/SMB.php 1 location
|
@@ 119-127 (lines=9) @@
|
| 116 |
|
return Filesystem::normalizePath($this->root . '/' . $path, true, false, true); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
protected function relativePath($fullPath) { |
| 120 |
|
if ($fullPath === $this->root) { |
| 121 |
|
return ''; |
| 122 |
|
} else if (substr($fullPath, 0, strlen($this->root)) === $this->root) { |
| 123 |
|
return substr($fullPath, strlen($this->root)); |
| 124 |
|
} else { |
| 125 |
|
return null; |
| 126 |
|
} |
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
/** |
| 130 |
|
* @param string $path |