MCPcopy Create free account
hub / github.com/apache/pig / getFSMkDirCommand

Method getFSMkDirCommand

test/org/apache/pig/test/Util.java:674–678  ·  view source on GitHub ↗
(String fileName)

Source from the content-addressed store, hash-verified

672 }
673
674 static private String getFSMkDirCommand(String fileName) {
675 Path parentDir = new Path(fileName).getParent();
676 String mkdirCommand = parentDir.getName().isEmpty() ? "" : "fs -mkdir -p " + parentDir + "\n";
677 return mkdirCommand;
678 }
679
680 /**
681 * Utility method to copy a file form local filesystem to the dfs on

Callers 1

Calls 2

isEmptyMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected