The objective of this script is to take an official folder, save it in a temporary folder and then take the changed code and publish it in the official folder.
In the script I’m putting together, it makes the comparison and copies the newest files and eliminates some extensions.
If there are new files at the time of copying, it carries out the process and displays the error, if there is nothing to copy, it does not display the error.
From your perspective, is there a syntax problem in the script?
Is there another way to do this?
Hello Alex!
I’m just starting out in the world of scripts.
I have no idea what value it is returning, could you tell me how I capture this error code?
Thank you very much
No files were copied. No failure was met. No files were mismatched. The files already exist in the destination directory; so the copy operation was skipped.
1
All files were copied successfully.
2
There are some additional files in the destination directory that aren’t present in the source directory. No files were copied.
3
Some files were copied. Additional files were present. No failure was met.
5
Some files were copied. Some files were mismatched. No failure was met.
6
Additional files and mismatched files exist. No files were copied and no failures were met. Which means that the files already exist in the destination directory.
7
Files were copied, a file mismatch was present, and additional files were present.