getFiles
returns an array of all files added to the users file list
Syntax
getFiles()
Returns
returns (array with objects) each containing at least a "path" and "index" property.
Parameters
None
Usage
// get all files
var files = getFiles();
// print all files
echo( objectToString( files ) );
// print first file
echo( objectToString( files[0]["path"] ) );
// loop through all files one-by-one
for (i=0;i<files.length;i++)
{
echo( files[i]["path"] );
}
example array console output
[
{
"idpath": "C:\\file.txt:0",
"path": "C:\\file.txt",
"index": 0
},
{
"idpath": "C:\\file.txt:1",
"path": "C:\\file.txt",
"index": 1
},
{
"idpath": "C:\\other_file.txt:0",
"path": "C:\\other_file.txt",
"index": 0
}
]