Path destPath = destFile.toPath();
Files.setAttribute(destPath, "creationTime", FileTime.fromMillis(itime.getTime()));</BUG>
Files.setAttribute(destPath, "lastModifiedTime", FileTime.fromMillis(mtime.getTime()));
Files.setAttribute(destPath, "lastAccessTime", FileTime.fromMillis(atime.getTime()));
<BUG>if (!System.getProperty("os.name").startsWith("Windows")) {
Files.setAttribute(destPath, "unix:uid", (int) uid);
Files.setAttribute(destPath, "unix:gid", (int) gid);
}</BUG>
if (size != destFile.length())
<BUG>throw new RuntimeException(String.format("destination file %s is not the right size (expected %d)", destFile, size));
timeOperationComplete(CasUtil.OPERATION_TOTAL);</BUG>
} catch (Throwable t) {

Path destPath = destFile.toPath();
LogMF.debug(l4j, "updating timestamps for {0}", destPath);
Files.setAttribute(destPath, "creationTime", FileTime.fromMillis(itime.getTime()));
Files.setAttribute(destPath, "lastModifiedTime", FileTime.fromMillis(mtime.getTime()));
Files.setAttribute(destPath, "lastAccessTime", FileTime.fromMillis(atime.getTime()));
if (size != destFile.length())
throw new RuntimeException(String.format("destination file %s is not the right size (expected %d)", destFile, size));
} else {
LogMF.info(l4j, "{0} is up to date, skipping", destFile);
}
}
timeOperationComplete(CasUtil.OPERATION_TOTAL);
} catch (Throwable t) {
