[opencms-dev] count files in vfs folder

Christian Steinert christian_steinert at web.de
Tue Nov 10 14:49:01 CET 2009


> hi all,
>
> i need to count files in a specific subfolder and to read their filenames. the folder is an extended folder (download gallery) and contains no xml-files, so contentload will not work. the folder is not exported to the real filesystem. is there a way to access the files? i don't like the idea of exporting that folder very much.
>
>   
Dear Lorenz,

Please take a look at this:
http://files.opencms.org/javadoc/core/org/opencms/file/CmsObject.html#getFilesInFolder(java.lang.String)

for almost everything, it is a good startingpoint to take a look at the 
functionality that is offered by CmsObject

hth.

Grüße :-)
Christian
> thanks!
> lorenz
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>   




More information about the opencms-dev mailing list