io.github.eliux.mega.cmd.MegaCmdMove Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of megacmd4j Show documentation
Show all versions of megacmd4j Show documentation
Java client library that works on top of MEGAcmd to provide access to the services of Mega.nz
package io.github.eliux.mega.cmd;
import java.util.Arrays;
import java.util.List;
public class MegaCmdMove extends AbstractMegaCmdRunnerWithParams {
private final String sourceRemotePath;
private final String remoteTarget;
public MegaCmdMove(String sourceRemotePath, String remoteTarget) {
this.sourceRemotePath = sourceRemotePath;
this.remoteTarget = remoteTarget;
}
@Override
List cmdParams() {
return Arrays.asList(sourceRemotePath, remoteTarget);
}
@Override
public String getCmd() {
return "mv";
}
public String getSourceRemotePath() {
return sourceRemotePath;
}
public String getRemoteTarget() {
return remoteTarget;
}
}