if (directory.isDirectory())
{
File[] listOfFiles = directory.listFiles(new UploadFileFilter(extension));
for (File file : listOfFiles)
if (file.isFile())
list.add(new WeaveFileInfo(file));
}
}
catch (Exception e)
{
throw new RemoteException(e.getMessage());