@@ -6,7 +6,7 @@ author: normesta
6
6
ms.service : storage
7
7
ms.subservice : data-lake-storage-gen2
8
8
ms.topic : conceptual
9
- ms.date : 03/30 /2020
9
+ ms.date : 04/02 /2020
10
10
ms.author : normesta
11
11
ms.reviewer : prishet
12
12
---
@@ -126,8 +126,8 @@ $dir.ACL
126
126
$dir.Permissions
127
127
$dir.Group
128
128
$dir.Owner
129
- $dir.Metadata
130
129
$dir.Properties
130
+ $dir.Properties.Metadata
131
131
```
132
132
133
133
## Rename or move a directory
@@ -229,8 +229,9 @@ This example uploads the same file, but then sets the permissions, umask, proper
229
229
``` powershell
230
230
$file = New-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName -Path $destPath -Source $localSrcFile -Permission rwxrwxrwx -Umask ---rwx--- -Property @{"ContentEncoding" = "UDF8"; "CacheControl" = "READ"} -Metadata @{"tag1" = "value1"; "tag2" = "value2" }
231
231
$file1
232
- $file1.File.Metadata
233
- $file1.File.Properties
232
+ $file1.Properties
233
+ $file1.Properties.Metadata
234
+
234
235
```
235
236
236
237
## Show file properties
@@ -246,8 +247,8 @@ $file.ACL
246
247
$file.Permissions
247
248
$file.Group
248
249
$file.Owner
249
- $file.Metadata
250
250
$file.Properties
251
+ $file.Properties.Metadata
251
252
```
252
253
253
254
## Delete a file
@@ -319,7 +320,7 @@ $acl = set-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rw-
319
320
$acl = set-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl
320
321
$acl = set-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission -wx -InputObject $acl
321
322
Update-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName -Acl $acl
322
- $filesystem = Get-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName -Path $dirname
323
+ $filesystem = Get-AzDataLakeGen2Item -Context $ctx -FileSystem $filesystemName
323
324
$filesystem.ACL
324
325
```
325
326
@@ -364,7 +365,7 @@ $filesystemName = "my-file-system"
364
365
$acl = set-AzDataLakeGen2ItemAclObject -AccessControlType user -Permission rw-
365
366
$acl = set-AzDataLakeGen2ItemAclObject -AccessControlType group -Permission rw- -InputObject $acl
366
367
$acl = set-AzDataLakeGen2ItemAclObject -AccessControlType other -Permission -wx -InputObject $acl
367
- Get-AzDataLakeGen2ChildItem -Context $ctx -FileSystem $filesystemName -Recurse -FetchProperty | Update-AzDataLakeGen2Item -Acl $acl
368
+ Get-AzDataLakeGen2ChildItem -Context $ctx -FileSystem $filesystemName -Recurse | Update-AzDataLakeGen2Item -Acl $acl
368
369
```
369
370
<a id =" gen1-gen2-map " />
370
371
0 commit comments