SyntaxFix
Write A Post
Hire A Developer
Questions
In this case, why not use new File("prefix/dir1/dir2/dir3/dir4") and go from there?
new File("prefix/dir1/dir2/dir3/dir4")