Hey,
I'm wondering if there is a way to display the directory listings of a folder on my server directly on a grav page?
Assume there is a directory with subfolders containing pdfs. What I want is simple tree-structured listing of all the files and subfolders.
I've found this as the quickest solution via PHP: the scandir-command.
But how would I apply this, if this is even possible?
$files = array_slice(scandir('/directory/path/'), 2);