Is there a library to take a folder, take a snapshot of its content, do some modifications and then restore it to its previous state from directly from a java program (i.e. not from the command line) ?

*Edit*:
Basically, i am working on a very large folder: 80mb, ~7000 files.
And I want to restore only files that were modified as fast as possible.
Only copying everything back looks time consuming.