getJEscapedList(), getJavaEscapedList()
This method returns an array of the directories formatted with each directory's "/ or \" escaped.