Reputation: 79
I want to filter source folder for files have name starting with 'File'. Then I want to check if those files are already present in sink folder. If not present then copy else skip.
Picture 1 -This is the initial picture which contains files in source and sink
Picture 2 - This is the desired output where only those files are copied which were not present in Sink (except junk files)
Picture 3 - This is how I tried. There are IF & copyData activity in ForEach, But I am getting error in copyData activity.
Upvotes: 0
Views: 1109
Reputation: 5074
I have reproed in my local environment as shown below.
The output of Get Metadata1:
@activity('Get Sink Files').output.childItems
Add append variable activity inside ForEach activity.
Get Metadata
activity in the pipeline.The output of Get metadata2:
@activity('Get Source Files').output.childItems
@contains(variables('sink_files_list'),item().name)
Source:
Sink:
Upvotes: 1