On the database I have 2 values as above. now every time it completes I will -1 the value and update it to the database, when it completes it will stop the script, but in multithreading for example I have 2 rows it seems to work properly but when running 3 threads it doesn't work properly
If you want the second folder to stay updated with the potential changes that appear in the original folder after working with it, then yes, you would need to copy it again.