return;
try {
Files.delete(lockFilePath);
} catch (IOException e) {
throw new CloudsyncException("Couldn't remove '" + lockFilePath.toString() + "'");
}
try {
if (root.getChildren().size() > 0) {
LOGGER.log(Level.INFO, "write structure to cache file");
final PrintWriter out = new PrintWriter(cacheFilePath.toFile());
final CSVPrinter csvOut = new CSVPrinter(out, CSVFormat.EXCEL);
writeStructureToCSVPrinter(csvOut, root);
out.close();
}
} catch (final IOException e) {
throw new CloudsyncException("Can't write cache file on '" + cacheFilePath.toString() + "'", e);
}
isLocked = false;
}