[opencms-dev] Directory structure
Kelvin
kelvin.ang at resonance.com.sg
Tue Jun 29 11:47:01 CEST 2004
Hi All,
I am try to get a list of the files in the directory, but when i run the
script below, i get "0" for the file.size().
====================================================
String resPath = cms.link("../resources/");
out.println(resPath);
ArrayList file = new ArrayList();
file.addAll(cms.getCmsObject().getFilesInFolder(resPath));
out.println(file.size());
====================================================
I am trying to get the files from:
"/system/modules/org.opencms.templates/resources/"
and "out.println(resPath)" returns:
"opencms/opencms/system/modules/org.opencms.templates/resources/"
Can someone tell me what i got wrong? Thanks a lot
Cheers,
Kelvin
More information about the opencms-dev
mailing list