Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi.
I have an route jobs that have cftp to connect and directory in other server and copy this file using cfile to destination folder. But
How can I control this since the file in the source is always being copied to the destination? Of course, the file will always exist in the source directory. It should only be copied again if the file in the source is replaced.
thanks
Hello lguevara,
Thank you for reaching out to the Qlik community.
You can use a file-change control instead of a plain copy. Below are the best practices that can help you.
IF source.last_modified > destination.last_modified THEN copy file ENDIF
thanks @Rahul_Kale
And How configure this Compare timestamp/size before copying using cftp or cfile or how implement this file change control.
Hello lguevara,
cftp / cFile cannot compare timestamp/size by itself → you must implement pre‑check logic (script, route, or job step).