114115116117118119120121122123124
if (atomic) { if (sudo) { throw new UnsupportedOperationException("Atomic sudo move not yet implemented"); } tempFile.renameTo(new RemoteFile(dest)); } else { ShellCommand command = ShellCommand.create("/bin/cp"); command.arg(remoteDest); command.arg(dest);