getfirstfolder return null

High,
i'm making a script to load a pose preset and i try to use the content manager for this. I've tried the getfirstfolder method and it returns null, just before i call the hasSubfolder method and it returns true. I don't understand where is the problem...
cmgr=App.getContentMgr(); index=cmgr.getNumContentDirectories(); for (i=0;i<index;i++) { content=cmgr.getContentDirectory(i); if (content.label=="My DAZ 3D Library") { if (content.hasSubFolders()) { print(content.folderType); folder=content.getFirstFolder(); print (folder); } else { print("No subfolder"); } }
}
Comments
Not that I really understand the coding requirements for this scripting language, but haing tried it (and had a play with chagnging stuff and trying to work with the documentation) I am getting the same results with 4.9.3.166, 64-bit in WIn 8.1
same for me,
all those return null
the problem seems to be that
but I have no idea how to force fhe folder to "load" those