[opencms-dev] Getting files in folder
Vaclav Balak
shmoula at gmail.com
Tue Feb 9 14:47:11 CET 2010
Hi,
I have a directory (a CmsResource) and I would like to get list of
objects inside. Is there any simple method to do this, or do I need to
get relative path of that Resource and set it to a parametr to
getFileInFolder like this:
CmsResource parentFolder = ...;
String relativePath =
do-some-absolutely-needless-and-redundant-stuff(parentFolder);
List<CmsResource> files = cmsObject.getFilesInFolder(relativePath,
CmsResourceFilter.ALL);
Isn't it can be done simplier?
Thanks in advance
Vaclav Balak
More information about the opencms-dev
mailing list