How to copy files while keeping directory structure?
- by Cubic
This is for a java project, but the same concept can be applied more generally:
Basically, I have a projects with all *.java files located in some sub directory of src. Now I want to grab all directories with the name test in that directory tree and move them into a new directory called tests, e.g.:
src->com->a1
-> A.java
-> B.java
-> test
-> test1.java
-> test2.java
to
src->com->a1
-> A.java
-> B.java
tests->com->a1->test
-> test1.java
-> test2.java
How would I best do that?