}
public void run() {
int exitValue = ScpHelper.OK;
String exitMessage = null;
ScpHelper helper = new ScpHelper(in, out, root);
try {
if (optT) {
helper.receive(root.getFile(path), optR, optD, optP);
} else if (optF) {
helper.send(Collections.singletonList(path), optR, optP);
} else {
throw new IOException("Unsupported mode");
}
} catch (IOException e) {
try {