public function getFolderTreeToUserRoot()
{
$p = $this->getFolderPath();
do {
$folderTree[] = $p;
// remove from last "/" to previous "/", e.g.:
// "/foo/bar/baz/" -> "/foo/bar/"
// remove the last "/"
$p = substr($p, 0, strlen($p) - 1);
// remove everything after the now last "/"
$p = substr($p, 0, strrpos($p, '/') + 1);
} while (substr_count($p, '/') > 1);
return $folderTree;
}