java - Merging two folders with priority on timestamp -
one of our teams migrated deal of legacy info folder of current data. of team members weren't aware of changes, continued create modifications in legacy folder.
i'd consolidate info doing timestamp checks. can write script this, want windows explorer merge of 2 folders, alternative selected "newer" 1 in conflicts. is, if source has newer file, re-create source dest. if dest newer, don't re-create source dest. if source exists dest doesn't, re-create source over.
i'm writing quick script in java, i'm running issues, , wanted know if there's much simpler solution select "newer" option.
to re-create file standard concise way re-create file in java?
to timestamp http://docs.oracle.com/javase/6/docs/api/java/io/file.html#lastmodified%28%29
java copy
No comments:
Post a Comment