Package org.apache.hadoop.fs.http.server
Class FSOperations.FSMkdirs
java.lang.Object
org.apache.hadoop.fs.http.server.FSOperations.FSMkdirs
- All Implemented Interfaces:
FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
- Enclosing class:
- FSOperations
@Private
public static class FSOperations.FSMkdirs
extends Object
implements FileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>
Executor that performs a mkdirs FileSystemAccess files system operation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.json.simple.JSONObjectexecute(org.apache.hadoop.fs.FileSystem fs) Executes the filesystem operation.
-
Constructor Details
-
FSMkdirs
Creates a mkdirs executor.- Parameters:
path- directory path to create.permission- permission to use.unmaskedPermission- unmasked permissions for the directory
-
-
Method Details
-
execute
Executes the filesystem operation.- Specified by:
executein interfaceFileSystemAccess.FileSystemExecutor<org.json.simple.JSONObject>- Parameters:
fs- filesystem instance to use.- Returns:
trueif the mkdirs operation was successful,falseotherwise.- Throws:
IOException- thrown if an IO error occurred.
-