Skip to content

Commit 9b66483

Browse files
committed
Clarification on upload-batch example
1 parent d23864f commit 9b66483

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/storage/blobs/blob-cli.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ You can use the `az storage blob upload-batch` command to recursively upload mul
6868

6969
In the following example, the first operation uses the `az storage blob upload` command to upload a single, named file. The source file and destination storage container are specified with the `--file` and `--container-name` parameters.
7070

71-
The second operation demonstrates the use of the `az storage blob upload-batch` command to upload multiple files. The `--if-unmodified-since` parameter ensures that only files modified with the last seven days will be uploaded. The value supplied by this parameter must be provided in UTC format.
71+
The second operation demonstrates the use of the `az storage blob upload-batch` command to upload multiple files. The `--if-modified-since` parameter ensures that only files modified within the last seven days will be uploaded. The value supplied by this parameter must be provided in UTC format.
7272

7373
```azurecli-interactive
7474
7575
#!/bin/bash
7676
storageAccount="<storage-account>"
7777
containerName="demo-container"
78-
lastModified=`date -d "10 days ago" '+%Y-%m-%dT%H:%MZ'`
78+
lastModified=`date -d "7 days ago" '+%Y-%m-%dT%H:%MZ'`
7979
8080
path="C:\\temp\\"
8181
filename="demo-file.txt"
@@ -96,7 +96,7 @@ az storage blob upload-batch \
9696
--pattern *.png \
9797
--account-name $storageAccount \
9898
--auth-mode login \
99-
--if-unmodified-since $lastModified
99+
--if-modified-since $lastModified
100100
101101
```
102102

0 commit comments

Comments
 (0)