OpenWGA 7.7 - TMLScript reference

WGA » WGA.File()
Method :


On object WGA.File()
Usage List all files in the referenced folder optional filtered by a filter function.

filter (Function, optional)

A JS-function called for each directory entry with a object as function argument.

The filter function must return true or false.

Return value List of WGAFile objects.
//Processes a list of XML files in the file system from folder "import"
var files = WGA.File("import").listFiles(); for(let file in Iterator(files){ var xml = file.asXMLDocument(); // process the xml ... }