@InterfaceAudience.Private public static class FSOperations.FSSetPermission extends Object implements FileSystemAccess.FileSystemExecutor<Void>
Constructor and Description |
---|
FSSetPermission(String path,
short permission)
Creates a set-permission executor.
|
Modifier and Type | Method and Description |
---|---|
Void |
execute(org.apache.hadoop.fs.FileSystem fs)
Executes the filesystem operation.
|
public FSSetPermission(String path, short permission)
path
- path to set the permission.permission
- permission to set.public Void execute(org.apache.hadoop.fs.FileSystem fs) throws IOException
execute
in interface FileSystemAccess.FileSystemExecutor<Void>
fs
- filesystem instance to use.IOException
- thrown if an IO error occurred.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.