Community
Participate
Working Groups
// Otherwise, if it is a folder, check its children for the existing resource path
// but only check if the beginning segments are a match
if(moduleResource instanceof IModuleFolder &&
startsWith(moduleSegments, pathSegments) &&
startsWith(moduleSegments, pathSegments) && pathSegments.length > moduleSegments.length &&
moduleResource.getName().equals(pathSegments[moduleSegments.length > 0 ? moduleSegments.length : 0]))
if (((IModuleFolder)moduleResource).members()!=null)
return getExistingModuleResource(Arrays.asList(((IModuleFolder)moduleResource).members()),path);