We recently changed from svn to git. Now I have to change a zip-generator which needs a directory list.
With svn it was very easy but what is the best way in java to get a list of directories in a specific path?
I tried with the stash-api
but didn't get an usable result.
Thanks for helping.
Edit: The structure on git looks like this. Now I need the directories 1.0.0 - 1.1.1 in java to work with.
├── project
│ ├── database
│ │ ├── scripts
│ │ │ ├── 1.0.0
│ │ │ ├── 1.0.1
│ │ │ ├── 1.1.0
│ │ │ └── 1.1.1
Edit2:
Old way
File file = new File(this.source);
File[] files = file.listFiles();
this.source = path to svn folder