@Test(expected = IOException.class) public void mkdirInvalidPathTest() throws IOException { mFsShell.mkdir(new String[] { "mkdir", "/test File Invalid Path" }); }
public int mkdir(String argv[]) throws IOException { if (argv.length != 2) { System.out.println("Usage: tfs mkdir <path>"); return -1; } String path = argv[1]; String folder = Utils.getFilePath(path); TachyonFS tachyonClient = TachyonFS.get(Utils.validatePath(path)); if (tachyonClient.mkdir(folder)) { System.out.println("Successfully created directory " + folder); return 0; } else { return -1; } }
TFsShell { public int mkdir(String argv[]) throws IOException { if (argv.length != 2) { System.out.println("Usage: tfs mkdir <path>"); return -1; } String path = argv[1]; String folder = Utils.getFilePath(path); TachyonFS tachyonClient = TachyonFS.get(Utils.validatePath(path)); if (tachyonClient.mkdir(folder)) { System.out.println("Successfully created directory " + folder); return 0; } else { return -1; } } }
TFsShell { public int mkdir(String argv[]) throws IOException { if (argv.length != 2) { System.out.println("Usage: tfs mkdir <path>"); return -1; } String path = argv[1]; String folder = Utils.getFilePath(path); TachyonFS tachyonClient = TachyonFS.get(Utils.validatePath(path)); if (tachyonClient.mkdir(folder)) { System.out.println("Successfully created directory " + folder); return 0; } else { return -1; } }  }
TFsShell { public int mkdir(String argv[]) throws IOException { if (argv.length != 2) { System.out.println("Usage: tfs mkdir <path>"); return -1; } String path = argv[1]; String folder = Utils.getFilePath(path); TachyonFS tachyonClient = TachyonFS.get(Utils.validatePath(path)); if (tachyonClient.mkdir(folder)) { System.out.println("Successfully created directory " + folder); return 0; } else { return -1; } }  static void main(String argv[]); int cat(String argv[]); int copyFromLocal(String argv[]); int copyToLocal(String argv[]); int count(String argv[]); int fileinfo(String argv[]); int location(String argv[]); int ls(String argv[]); int lsr(String argv[]); int mkdir(String argv[]); int pin(String argv[]); int unpin(String argv[]); void printUsage(); int rename(String argv[]); int report(String argv[]); int request(String argv[]); int rm(String argv[]); int run(String argv[]); int tail(String argv[]); int touch(String argv[]); }
TFsShell { public int mkdir(String argv[]) throws IOException { if (argv.length != 2) { System.out.println("Usage: tfs mkdir <path>"); return -1; } String path = argv[1]; String folder = Utils.getFilePath(path); TachyonFS tachyonClient = TachyonFS.get(Utils.validatePath(path)); if (tachyonClient.mkdir(folder)) { System.out.println("Successfully created directory " + folder); return 0; } else { return -1; } }  static void main(String argv[]); int cat(String argv[]); int copyFromLocal(String argv[]); int copyToLocal(String argv[]); int count(String argv[]); int fileinfo(String argv[]); int location(String argv[]); int ls(String argv[]); int lsr(String argv[]); int mkdir(String argv[]); int pin(String argv[]); int unpin(String argv[]); void printUsage(); int rename(String argv[]); int report(String argv[]); int request(String argv[]); int rm(String argv[]); int run(String argv[]); int tail(String argv[]); int touch(String argv[]);  }