mirror of
https://github.com/torproject/collector.git
synced 2024-11-23 17:39:45 +00:00
Always copy files to rsync/ and keep last modified time.
This commit is contained in:
parent
b63021a84f
commit
81dd6f373a
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user