for(int i = 0; i < files.length; i++)
{
if(files[i].isDirectory())
{
items[i] = new Item(files[i].getName(), Item.DIRECTORY);
}
if(files[i].isFile())
{
byte[] content = this.getContent(path + "/" + files[i].getName());
String md5 = DigestUtils.md5Hex(Kadabra.normalizeContent(content));
items[i] = new Item(files[i].getName(), Item.FILE, md5);
}
}
logger.info("Found " + items.length + " files");