Skip to main content
Question

Publish a daily generated file to another folder once per month

  • June 6, 2024
  • 1 reply
  • 34 views

purplecinn
Participant
Forum|alt.badge.img

Hi, I am trying to publish a file to a certain folder once per month by using FME workbench. 

Currently, the file is generated daily with the filename format of YYYYMMDD.  And in the destination folder, there is a single file for each month, e.g. 20240101, 20240203, 20240302, etc. 

For example, if I run the workbench and generate the file on 20240601, the file should be published to the destination folder as there was no existing files in the folder with YYYYMM=202406. 

However, when I run the workbench again on 20240602, the file should not be published to the destination folder, as there is already one for 202406.  

Any help would be appreciated. 

 

1 reply

liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • June 6, 2024

You could have a Directory and File Path Reader read in the main folder with all the monthly folders and then compare the current data’s YYYYMM value to check for a match. If there is no match it proceeds, if there is then you can use a Terminator to terminate translation. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings