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

Method deleteFile

test/org/apache/pig/test/Util.java:474–481  ·  view source on GitHub ↗

Helper to remove a dfs file from the minicluster DFS @param miniCluster reference to the Minicluster where the file should be deleted @param fileName pathname of the file to be deleted @throws IOException

(MiniGenericCluster miniCluster, String fileName)

Source from the content-addressed store, hash-verified

472 * @throws IOException
473 */
474 static public void deleteFile(MiniGenericCluster miniCluster, String fileName)
475 throws IOException {
476 FileSystem fs = miniCluster.getFileSystem();
477 if(Util.WINDOWS){
478 fileName = fileName.replace('\\','/');
479 }
480 fs.delete(new Path(fileName), true);
481 }
482
483 /**
484 * Deletes a dfs file from the MiniCluster DFS quietly

Callers 15

createFileMethod · 0.95
tearDownMethod · 0.95
tearDownMethod · 0.95
testForEachTwoInputMethod · 0.95

Calls 6

toConfigurationMethod · 0.95
getFileSystemMethod · 0.80
replaceMethod · 0.65
deleteMethod · 0.65
getMethod · 0.65
getPropertiesMethod · 0.45

Tested by

no test coverage detected