if (structureFiles != null) {
for (CXmlStructureFile file : structureFiles) {
String path = file.getPath();
String[] parts = path.split("/", 2);
String folderPath = parts[0];
ServerFileFolder folder = folderMap.get(folderPath);
if (folder == null) {
folder = new ServerFileFolder(folderPath);
folderMap.put(folderPath, folder);
}
ServerFile structureFile = ServerFile.fromPathAndHash(parts[1], file.getMD5());
structureFile.setLastModified(file.getModifiedTime());
folder.addFile(structureFile);
}
}
int nFolders = folderMap.size();
ServerFileFolder[] returnFolders = new ServerFileFolder[nFolders];
int iFolderIndex = 0;