DataViewJS - current folder

Sometimes it is funny to use this template for simple questions :smiling_face:

What I’m trying to do

When using DataViewJS, I often want to jump into a specific folder. Usually, this is a subfolder or folder in the same “root”. To get the current folder, I use:

dv.current().file.folder

And then, I split & slice to get the folder up:

currentFolder.split('/').slice(0, -1).join('/');

I wonder if there is an easier way to move from folder up? Is there some DataViewJS code block that I can use, and I don’t know about it?

Things I have tried

Once, I tried pineapple pizza :pineapple::pizza: … and I didn’t like it :wink:

Cheers, Marko :nerd_face: