updating copy folder function