Always copy files to rsync/ and keep last modified time.

This commit is contained in:
Karsten Loesing 2012-01-14 11:29:45 +01:00
parent b63021a84f
commit 81dd6f373a

View File

@ -123,9 +123,6 @@ public class RsyncDataProvider {
}
private void copyFile(File from, File to) {
if (to.exists()) {
return;
}
try {
to.getParentFile().mkdirs();
FileInputStream fis = new FileInputStream(from);
@ -138,6 +135,7 @@ public class RsyncDataProvider {
}
bis.close();
fos.close();
to.setLastModified(from.lastModified());
} catch (IOException e) {
e.printStackTrace();
}