简体   繁体   English

如何使用 azure 函数或逻辑应用程序监视 sftp 中的多个位置?

[英]how to monitor multiple locations in sftp using azure function or logic app?

We need to monitor 10 different child folders for new files;我们需要为新文件监控 10 个不同的子文件夹;

parent/child1
parent/child2
parent/child3
etc

If there are any new files in any of the child folders then move the files up to the parent/如果child文件夹中有任何新文件,则将文件向上移动到parent/

How do we solve this using a logic app or azure function?我们如何使用逻辑应用程序或 azure 函数解决这个问题? I understand that there's an sFTP trigger for logic apps, but I do not believe it can monitor multiple locations.我知道逻辑应用程序有一个 sFTP 触发器,但我不相信它可以监控多个位置。

I think my thought could meet your requirements.我想我的想法可以满足你的要求。

You could create a Recurrence with multiple triggers.您可以创建具有多个触发器的 Recurrence。 Firstly create a logic app with a Recurrence and set the Interval time and Frequency then move your pointer over the arrow above the step where you want to add parallel branches.首先创建一个具有循环的逻辑应用程序并设置间隔时间和频率,然后将指针移到要添加并行分支的步骤上方的箭头上。 Choose the plus sign ( + ) that appears, and then choose Add a parallel branch .选择出现的号 ( + ),然后选择 Add a parallel branch After that you could add actions you want.之后你可以添加你想要的动作。

And following is the result pic.以下是结果图片。 在此处输入图像描述

Maybe you could have a try, if you still have other questions, please let me know.也许你可以试试,如果你还有其他问题,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM