Question

I'm using Apache commons IO for copying files and Directories and I need to add cancel feature. Cancelling the copying operation should leave the files copied as they are till the button is clicked.

The following code is used for copying:
FileUtils.copyDirectory(srcDir, destDir);

Is there any idea to cancel this operation or i need to change copying code for adding cancelling feature??

Was it helpful?

Solution

Commons-io makes no provision for callbacks for a cancel/pause/restart.

Since it is open source, you can start from the source and implement what you need.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top