質問

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

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top