List<WeaveFileInfo> list = new ArrayList<WeaveFileInfo>();
try
{
if (directory.isDirectory())
{
File[] listOfFiles = directory.listFiles(new UploadFileFilter(extension));
for (File file : listOfFiles)
if (file.isFile())
list.add(new WeaveFileInfo(file));
}
}