Frage

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??

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top