prefix/dir1/dir2/dir3/dir4/..
How to parse the dir1, dir2 values out of the above string in Java?
dir1, dir2
The prefix here c
In this case, why not use new File("prefix/dir1/dir2/dir3/dir4") and go from there?
new File("prefix/dir1/dir2/dir3/dir4")