public String getCommandName() {
return "rm";
}
@Override
void runCommand(TachyonURI path) throws IOException {
<BUG>TachyonFile fd;
FileInfo fInfo;
try {
fd = mTfs.open(path);
fInfo = mTfs.getInfo(fd);
} catch (TachyonException e) {
throw new IOException(e.getMessage());</BUG>
}

public String getCommandName() {
return "rm";
}
@Override
void runCommand(TachyonURI path) throws IOException {
try {
if (!mTfs.exists(path)) {
throw new IOException("rm: path " + path + " to remove does not exist.");
}
if (mTfs.getStatus(path).isFolder()) {
throw new IOException("rm: cannot remove a directory, please try rmr <path>");
}
mTfs.delete(path);
System.out.println(path + " has been removed");
