Hello,
When I use the .listFiles() (Plugins\File\JSFile) function it returns only one object with the correct value, all other objects return ‘null’
var GT_Releasefolder = 'H:\\test\\'
var GO_Releasefolder = plugins.file.convertStringToJSFile(GT_Releasefolder)
var GA_DirList = GO_Releasefolder.listFiles()
i_max = GA_DirList.length
i = 0
for(i; i < i_max; i++)
{
application.output(GA_DirList[i])
}
Result of the output window
H:\test\test.TIF
null
null
null
null
null
null
By the way the first result is the latest file in the list when sorted on name.
Kind Regards Rene
Servoy Developer
Version R2 2.2.5-build 337
Java version 1.5.0_06-b05 (Windows XP)
File plugin created 13-11-2005 modified 03-12-2005