[opencms-dev] Directory structure

M Butcher mbutcher at grcomputing.net
Tue Jun 29 16:57:01 CEST 2004


Kelvin,

Take a look at this posting on the forum:

http://www.opencms-forum.de/viewtopic.php?t=190

Matt

Kelvin wrote:
> 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
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list