List of files in a folder and

I would like to create, at the moment, a component like this:

  • input 1: path folder

  • input 2: number of characters preceding the file name,

  • input 3: chosen file number (with a slider);

  • output 1: list of files present in the folder,

  • output 2: chosen file name.

What am I doing wrong?