Pergunta

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

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top