accessing Media sub-folder items info

Hi
So, I’ve written some front-end code that randomly sorts a gallery items.
Thing is, I initially manually populated the gallery items by selecting images from a dedicated media sub-folder.
I imagine there is a way to write a code that will scan this folder and populate the items.
I’ve managed to write a back-end and front-end example code using the getFileInfo() function, while sending one of the files (in my sub-folder) identifier (I had to copy it manually from the Media Manager console).
So now I have the Promise resolved with the file info.
here is the front-end:


import wixWindow from ‘wix-window’ ;
import wixData from ‘wix-data’ ;
import {getFileInfo} from ‘backend/aModule’ ;
$w.onReady( async function () {
let fileinfo = await getFileInfo( “255ab0_de8c949815f84e998915a0b7ebd7c202~mv2.jpg” );
console.log(fileinfo);
});


and here is the back-end:


import wixMedia from ‘wix-media-backend’ ;
import { mediaManager } from ‘wix-media-backend’ ;

export async function getFileInfo(fileName) {
return mediaManager.getFileInfo(fileName);
}


So the question is:
is there a back-end method to retrieve a Media sub-folder items info by providing the sub-folder identifier?

Thanks
Assaf