Share via


FileSystemOperationsExtensions.SetPermission Method

Definition

Sets the permission of the file or folder.

public static void SetPermission (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string setPermissionFilePath, string permission = default);
public static void SetPermission (this Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations operations, string accountName, string path, string permission = default);
static member SetPermission : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string -> unit
static member SetPermission : Microsoft.Azure.Management.DataLake.Store.IFileSystemOperations * string * string * string -> unit
<Extension()>
Public Sub SetPermission (operations As IFileSystemOperations, accountName As String, setPermissionFilePath As String, Optional permission As String = Nothing)
<Extension()>
Public Sub SetPermission (operations As IFileSystemOperations, accountName As String, path As String, Optional permission As String = Nothing)

Parameters

operations
IFileSystemOperations

The operations group for this extension method.

accountName
String

The Azure Data Lake Store account to execute filesystem operations on.

setPermissionFilePathpath
String

The Data Lake Store path (starting with '/') of the file or directory for which to set the permission.

permission
String

A string representation of the permission (i.e 'rwx'). If empty, this property remains unchanged.

Applies to