Solution
The array of filenames was returned empty because of the DataLog Type input in the List Folder function.

The datalog type restricts the filenames to only datalog files containing records of the specified data type in the array.
All the files in the directory will be shown in the array indicator once the datalog type input is removed from List Folder function.