I m writing java pgm such that it connects to teamsite and returns the names of all files and folder of the workarea path specfied....but if it is a folder then it should go inside that folder and display the names of files present...and so on.. Please help me do that...
com.interwoven.cssdk.filesys.CSWorkarea wa = client.getWorkarea(waPath, false);
CSSortKey[] sortArray = new CSSortKey[1];
sortArray[0] = new CSSortKey(CSSortKey.NAME, true);
Iterator i = wa.getFiles( CSFileKindMask.ALLNONHOLES,
sortArray,
CSFileKindMask.ALLNONHOLES,
null,
0,
-1);
while (i.hasNext()) {
CSFile file = (CSFile) i.next();
// get each file's kind
long fsize = 0;
// if it's a simple file, get its size
if (file.getKind() == CSSimpleFile.KIND) {
fsize = ((CSSimpleFile) file).getSize();
}
// get the name, last modifier, and lastModDate
String name1 = file.getName();
while loop will repeat again..