how to show folder menu

(from github.com/rafael844)
How can I put a menu to show the subfolder where my files are? like “data range” “size” and “file type”

My files are in:
d:/Myfolder/subfolder1/01.pdf
d:/Myfolder/subfolder2/02.pdf
d:/Myfolder/subfolder3/01.pdf

I want to show only the subfolder in the menu.
subfolder1
subfolder2
subfolder3

Thanks.

(from github.com/marevol)
To do that, you need to add a field for a folder path and modify some Java codes…