if (fname.contains("..")) {
continue;
}
File file = new File(dir, fname);
if (!file.exists()) throw new ResourceNotFoundEx(file.getAbsolutePath());
Element fileInfo = new Element("file");
Element details = BinaryFile.encode(200, file.getAbsolutePath(), false);
String remoteURL = details.getAttributeValue("remotepath");