Cancel Copy Operation on java [closed]
-
14-07-2021 - |
Domanda
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??
Soluzione
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.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow