Microsoft.Azure.Commands.DataLakeStore.RemoveAzureDataLakeStoreItemAcl.ExecuteCmdlet C# (CSharp) Method

ExecuteCmdlet() public method

public ExecuteCmdlet ( ) : void
return void
        public override void ExecuteCmdlet()
        {
            if (!Force.IsPresent)
            {
                ConfirmAction(
                    Force.IsPresent,
                    string.Format(Resources.RemovingDataLakeStoreItemAcl,
                        Default ? Resources.DefaultAclWord : string.Empty, Path.OriginalPath),
                    string.Format(Resources.RemoveDataLakeStoreItemAcl,
                        Default ? Resources.DefaultAclWord : string.Empty, Path.OriginalPath),
                    Path.OriginalPath,
                    () =>
                    {
                        if (Default)
                        {
                            DataLakeStoreFileSystemClient.RemoveDefaultAcl(Path.TransformedPath, Account);
                        }
                        else
                        {
                            DataLakeStoreFileSystemClient.RemoveAcl(Path.TransformedPath, Account);
                        }
                    });
            }
            else
            {
                if (Default)
                {
                    DataLakeStoreFileSystemClient.RemoveDefaultAcl(Path.TransformedPath, Account);
                }
                else
                {
                    DataLakeStoreFileSystemClient.RemoveAcl(Path.TransformedPath, Account);
                }
            }
        }
    }
RemoveAzureDataLakeStoreItemAcl