Wappler Version : 3.9.9
Operating System : W10
Server Model: NodeJS
Hosting Type: Docker
Expected behavior
Looping through a bunch of files inside a folder, & copying them to another folder.
Then, creating a ZIP from the newly created folder.
Actual behavior
The newly created ZIP does not have the last two images, consistently, even though the image does get copied to the new folder.
How to reproduce
Here’s what my setup looks like (simplified for bug report):
- Create a new folder.
- Folder list step to get all files inside an existing folder.
- Use repeat to loop through each image separately to identify which images I need to duplicate.
- Use FILE COPY step when condition to duplicate is true.
- Outside the repeat, I use Folder ZIP step to create ZIP of the folder created in step 1.
In output, I see all images but the last two, consistently.
So, I tried adding a delay using WAIT of 1500 ms, and now I see all images. This is not at all workable, since there is no guarantee that last 2 images will get copied in 1.5 seconds.
Are the COPY & ZIP steps not sequential?
Shouldn’t the COPY step complete only after the image is actually copied?
Please help.