Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Display file list
stimpy
What is the method for displaying Files in a directory (not workarea)?
e.g.
I have
//bxraywang01/default/main/Project/WORKAREA/ProjectA/Temp
I would like to list all the files (recursively) under Temp.
i.e. declare a CSFile[] object containing an array of files/directories under temp.
Thanks in advance,
Stimp
Find more posts tagged with
Comments
stimpy
Musta been Friday brain fade...
Figured it out first thing Mondie morning!
CSFile TmpPathFile= client.getFile(TmpPath);
CSFile[] TmpFiles= (CSFile[])TmpPathFile.getChildren();
for(int i=0; i<TmpFiles.length; i++){
out.println(TmpFiles
.getName() + "<BR>");
}
doh!
I think I am fixed for now!