This scenario is new for me. My storage account having multiple folders. 1 folder contains few.txt files and.zip files. .zip files contains.seq files.
My requirement is need to look in to each folder and
Sink to destination.
Get the list of folders from the container, copy.txt files to sink folder and unzip and copy seq files to sink, convert seq files to CSV and delete seq files from the folder.
Part1:
Get Metadata
activity get the folders list.Get Metadata1
to ForEach activity. @activity('get folder list').output.childItems
ForEach
activity, add 2 copy activities.Copy data activity1:
In one copy data
activity, unzip the zip files and copy to sink.
Copy data activity2:
Part2:
GetMetadata2
activity output to ForEach2
activity. Copy each 'seq' file and convert it to CSV using copy data activity. Parameterize the sink file name and replace extension seq
with CSV
.
@replace(item().name,'.seq','.csv')
Part3:
As seq files were not deleted while converting them to CSV, we can use delete
activity to delete them from the folder.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.