(String fileName)
| 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 |
no test coverage detected