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

Method mkdirs

src/org/apache/pig/PigServer.java:1298–1305  ·  view source on GitHub ↗

Make a directory. @param dirs directory to make @return true @throws IOException

(String dirs)

Source from the content-addressed store, hash-verified

1296 * @throws IOException
1297 */
1298 public boolean mkdirs(String dirs) throws IOException {
1299 // Check if this operation is permitted
1300 filter.validate(PigCommandFilter.Command.MKDIR);
1301
1302 ContainerDescriptor container = pigContext.getDfs().asContainer(dirs);
1303 container.create();
1304 return true;
1305 }
1306
1307 /**
1308 * List the contents of a directory.

Callers 15

setUpMethod · 0.80
createSimpleDirMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80
setupMethod · 0.80
setUpMethod · 0.80
createDirMethod · 0.80

Calls 4

getDfsMethod · 0.80
validateMethod · 0.65
asContainerMethod · 0.65
createMethod · 0.65

Tested by 15

setUpMethod · 0.64
createSimpleDirMethod · 0.64
setupMethod · 0.64
setupMethod · 0.64
setupMethod · 0.64
setUpMethod · 0.64
createDirMethod · 0.64