Make a directory. @param dirs directory to make @return true @throws IOException
(String dirs)
| 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. |