Exception Handling while making Multiple copies of a file in different folders
<p>I'm copying a file to multiple folders, say I have an <code>abc.htm</code> which needs to be copied in <code>c:/test1</code>, <code>c:/test2</code> .... <code>c:/test10</code> using Java program. I need to make sure that the copying is successfull either in all the 10 folders or the if it fails in between file should be deleted from all the folders.
Every time I make the copy I'm returning the path, now I'm seeking help on setting the retry count for copying and even if the retry fails all the copies of <code>abc.htm</code> should be deleted from folders to which it was copied.
Can any one provide any pointers on the same.</p>
