getRelativePath can return null

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2021-03-19 18:13:59 +01:00
parent 4406092fd6
commit f842608c95
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class Folder extends Node implements \OCP\Files\Folder {
/**
* @param string $path
* @return string
* @return string|null
*/
public function getRelativePath($path) {
if ($this->path === '' or $this->path === '/') {

View File

@ -55,7 +55,7 @@ interface Folder extends Node {
*
* @param string $path absolute path of an item in the folder
* @throws \OCP\Files\NotFoundException
* @return string
* @return string|null
* @since 6.0.0
*/
public function getRelativePath($path);