I have the following directory structure:
Main1
+-Parent1
+-File1
+-File2
+-Parent2
+-File3
+-File4
+-Parent3
+-File5
+-File6
...
And I am looking to copy to a new directory. However, if the Parent folder already exists, regardless of it file contents, I do not want to copy it.
Main2
+-Parent2
+-File7
+-File8
So if I am copying from Main1
to Main2
, the Parent2
folder in Main1
would not copy, nor would its contents.
In the end, it should end up looking like this:
Main1
+-Parent2
+-File3
+-File4
Main2
+-Parent1
+-File1
+-File2
+-Parent2
+-File7
+-File8
+-Parent3
+-File5
+-File6
...