/** * Find a root from a path * * @param path the path * @return the root if found in the roots */ protected VirtualFile findRoot(String path) { VirtualFileInfo vfi = findVirtualFileInfo(path); if (vfi == null) return null; return vfi.getRoot(); }
/** * Find a child from a path * * @param path the path * @return the child if found in the roots */ protected VirtualFile findChild(String path) { VirtualFileInfo vfi = findVirtualFileInfo(path); if (vfi == null) return null; return vfi.getFile(); }