SrGnis
SrGnis

Reputation: 11

Apache Commons VFS copyFrom in the same host uses the network

I am making a FTP client using apache.commons.vfs and I want to add the copy and paste functionality for the files in the remote server.

I used the copyFrom method to copy the files:

destFile.copyFrom(srcFile, Selectors.SELECT_ALL)

The problem is that in this way the data goes from remote server to the FTP client and from there back to the remote server, making the copy speed very slow compared to copying them by the cp command.

Is there a way in apache.commons.vfs to do the copy using the host commands instead of network transfers?

Upvotes: 1

Views: 250

Answers (0)

Related Questions