List all files in the asset folder

Is there any easy “Kirby like” solution to list all files in a folder, for example the assets? I tried with

dump(Dir::read($kirby->url('assets')));

But that doesn’t seem to work (of course, assets has no files in it). But also this isn’t working

dump(Dir::read($kirby->url('assets') . '/js/'));

Almost.

dump(Dir::read($kirby->root('assets')));

That’s working :smiley: