Comments and answers for "FME Server Directory Watch on folders only" https://knowledge.safe.com/questions/82922/fme-server-directory-watch-on-folders-only.html 最新的评论和回答问题”FME Server Directory Watch on folders only" Comment by sirrona on sirrona's answer https://knowledge.safe.com/comments/85234/view.html

thanks @jlutherthomas, the problem I had is that I didn't know the next dated folder and couldn't watch a subfolder that didn't exist yet! I ended up using a schedule rather than a notification, looking at the root folder and checking for the latest file against ones already processed. Then using the logic you mention above to check all subfolders were present. Not as elegant as I would have hoped, but it works.

Fri, 11 Jan 2019 14:35:49 GMT sirrona
Answer by jlutherthomas https://knowledge.safe.com/answers/85195/view.html

Hi @sirrona

Apologies for the delay in responding to this question - I'm not sure whether you've found a way to do this yet. (If you have, it'd be great to know what you ended up doing)

My suggestion would be to have the directory watch trigger a workspace that would read in all of the files in the dated folder (Directory and File Pathnames Reader) and have some logic in the workspace to see if all of the folders you need are present. If they are, then you could start the process that you need when all subfolders are present.

Fri, 11 Jan 2019 00:53:24 GMT jlutherthomas