I am new to azure. I am have a container and in the container i have multiple directory and sub directory.
I have multiple files in the sub directory. I need to download the latest file from the sub directory. The file name will be "20201126_filename"
I am planning to use regular expression to download the latest file. Regular expression for the date
As of now i use the command.
azcopy cp "https://storageforecast.blob.core.windows.net/utopus/pollo/pollo1/pollo2/20201126_filename?si=plus&sv=201q7ZQ%2BMAVZhkpCwrXs1ns3fzpzNm0QI%3D" "E:\111" --recursive
Utopus- container pollo - directory pollo1- subdirectory pollo2-sub directory
Could you pls help me!!!
No, there is no way to use regular expression in azcopy.
Have a check of this azcopy offcial doc and check the options:
https://learn.microsoft.com/en-us/azure/storage/common/storage-ref-azcopy-copy#options
You can use --include-after to copy the latest blobs.:)