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);
}
}
}
}