/** * Get the path components of this directory. * @return the path components as an array of strings. */ public String[] getPath() { return getPath(directory.getAbsolutePath()); }
Directory current = root; File currentParent = baseDir; for (String element : Directory.getPath(name)) { final File file = new File(currentParent, element); if (file.isDirectory()) {