Loading multiple files using js, importing a set of xml files

Hi, I'm trying to load an arbitrary number of XML files using js. I have a C# script that can load up an array of files by directory that looks like

string[] filePaths = Directory.GetFiles(Application.dataPath + "/PathTraces/","*.csv");

and im trying to do something similar in js.

thanks dylan

Something like this should do it:

import System.IO;

//in your function
var filePaths : String[] = Directory.GetFiles(Application.dataPath + "/PathTraces/","*.csv");