Allow opening folder lisings on client
Some checks failed
DokuWiki Default Tasks / all (push) Has been cancelled

This commit is contained in:
2026-01-06 10:13:12 +01:00
parent 30bb9e3bbd
commit dbc9de37e0
4 changed files with 84 additions and 2 deletions

View File

@@ -110,4 +110,13 @@ EOT
$this->expectExceptionMessageMatches('/Path not allowed/');
$this->path->getPathInfo($path);
}
public function testMapToAliasPath()
{
$mapped = $this->path->mapToAliasPath('/linux/another/path/some/folder');
$this->assertEquals('alias/some/folder', $mapped);
$unmapped = $this->path->mapToAliasPath('/linux/file/path/example.txt');
$this->assertEquals('/linux/file/path/example.txt', $unmapped);
}
}