As you can see under dummy folders i have 3 different folders. But the folder which i am concern about is (testing) folder. So mike and john have testing , images and source folder. I would like to copy the parent directory which is john or mike and testing folder only to my XYZ server.
When i run my code the first time, it just copies the contents of testing folder without creating a testing folder. But when i ran the script second time everything works fine. Parent directory which is john or mike is copied to my XYZ server and testing folder is also copied under john and mike.
Can someone tell me what is going on? why my script is not creating the testing folder the first time ?