Azure ADF复制活动-如何将文件从多个子文件夹复制到目标文件夹中相应的文件夹

Azure ADF复制活动-如何将文件从多个子文件夹复制到目标文件夹中相应的文件夹,azure,copy,metadata,pipeline,Azure,Copy,Metadata,Pipeline,我有一个解压文件夹,它位于暂存位置,解压文件夹包含多个子文件夹,其中包含更多子文件夹和文件 下面是我的源blob文件夹结构。我想在源文件中循环浏览这些文件,并将它们分发到相应的目标文件夹中 当我将getmeta指向“/unzip.zip”时,我就知道如何使用getmeta读取所有文件名了 一旦有了完整的文件名列表,在“复制”活动中,如何将每个文件发送到与源文件同名的目标文件夹?棘手的部分是为文件来自的每个文件夹构建动态源文件夹路径(在“复制”活动中) 示例:可能的源文件路径位置: /Stagin

我有一个解压文件夹,它位于暂存位置,解压文件夹包含多个子文件夹,其中包含更多子文件夹和文件

下面是我的源blob文件夹结构。我想在源文件中循环浏览这些文件,并将它们分发到相应的目标文件夹中

  • 当我将getmeta指向“/unzip.zip”时,我就知道如何使用getmeta读取所有文件名了
  • 一旦有了完整的文件名列表,在“复制”活动中,如何将每个文件发送到与源文件同名的目标文件夹?棘手的部分是为文件来自的每个文件夹构建动态源文件夹路径(在“复制”活动中)
  • 示例:可能的源文件路径位置:

    /Staging/unzipped.zip/inbound/Account100/inboundtestfile.pdf
    /Staging/unzipped.zip/inbound/Account100/inboundtestfile2.pdf
    /Staging/unzipped.zip/inbound/Account200/inboundtestfile.pdf
    /Staging/unzipped.zip/inbound/Account200/inboundtestfile2.pdf
    /Staging/unzipped.zip/Outbound/Account100/outboundtestfile.pdf
    /Staging/unzipped.zip/Outbound/Account100/outboundtestfile2.pdf
    /Staging/unzipped.zip/Outbound/Account200/outboundtestfile.pdf
    /Staging/unzipped.zip/Outbound/Account200/outboundtestfile2.pdf
    
    示例:所需目标路径:

    Documents/Inbound/Account100/inboundtestfile.pdf
    Documents/Inbound/Account100/inboundtestfile2.pdf
    Documents/Outbound/Account100/ountboundtestfile.pdf
    Documents/Outbound/Account200/outboundtestfile2.pdf
    ...
    ...