How do i recursively get the path of directorys with files on it?
Im writing a program that needs to get the path of all the directories with JAVA files on it, recursively, for example:
|   |-->Foo2 --> lore.java
|Foo|
|   |-->Foo3 --> Foo4 --> ipsum.java
In this example, I would want to save in a list: FOO/FOO2 and FOO/FOO3/FOO4. There may be more nested directories, and those directories might contain java files, an example might be:
|
|   |--> Foo2 --> lore.java
|   |
|Foo|         | --> ipsum.java
|   |--> Foo3 |
|   |         | --> Foo4 --> rosae.java
In this example, i would want to save FOO/FOO2, FOO/FOO3 and FOO/FOO3/FOO4. Any ideas? Thanks!
 
    