final String parentPath = childPath.length() == item.getName().length() ? "" : StringUtils.removeEnd(FilenameUtils.getPath(childPath), Item.SEPARATOR);
mapping.put(childPath, item);
// System.out.println(parentPath+":"+item.getName());
Item parent = mapping.get(parentPath);
item.setParent(parent);
parent.addChild(item);
}
} catch (final IOException e) {
throw new CloudsyncException("Can't read cache from file '" + cacheFilePath.toString() + "'", e);
}