Hello guys can someone please show me the right way to get all the file names from a folder? I dont know how to get there and collect it. It dont find any files in the data with a:contains(".csv") because it is not returning any console logs. but there are 3 csv files in the folder.
here is the script which i use in my html in a script tag:
var folder = "csvData/";
var fileextension = ".csv";
$.ajax({
url: folders
, success: function (data) {
$(data).find("a:contains(" + fileextension + ")").each(function () {
console.log(filename);
});
}
});