Compress all files in folder when newest file is older than 30 min
Posted: Wed Apr 14, 2021 3:17 pm
My case: A customer will batch-send hundreds of PDF-files to a folder on our server, every batch of files is one job (a new batch of files will arrive a few times a week). We dont know the exact number of files in every batch, but they will not send multiple batches on the same day.
When new files arrives I want Switch to wait until the last file is transferred to us, and than I want to compress all files in the folder to one zip-file for further processing, and delete the original files.
Since I don't know how many files we are receiving or what time of day the files will arrive I was thinking that I some how can make Switch check when there is new files in the folder and wait 30 minutes after the last change before making the zip file.
Any suggestions how I can create this behaviour in my Switch flow?
When new files arrives I want Switch to wait until the last file is transferred to us, and than I want to compress all files in the folder to one zip-file for further processing, and delete the original files.
Since I don't know how many files we are receiving or what time of day the files will arrive I was thinking that I some how can make Switch check when there is new files in the folder and wait 30 minutes after the last change before making the zip file.
Any suggestions how I can create this behaviour in my Switch flow?