PathManipulation

package

OCA\Gallery\Controller

Methods

Returns a shortened path for the gallery view

getReducedPath(string $path, string $currFolderPath) : string

We only want to keep one folder between the current folder and the found media file /root/folder/sub1/sub2/file.ext becomes /root/folder/file.ext

Arguments

$path

string

the full path to a file, which never starts with a slash

$currFolderPath

string

the current folder, which never starts with a slash

Response

string