code: private boolean isDirectChildPath(String rootEntryPath, String entryPath) {
  		boolean result = false;
  		if (entryPath.length() > rootEntryPath.length() && entryPath.startsWith(rootEntryPath)) {
  			int idx = entryPath.indexOf(URL_SEPARATOR, rootEntryPath.length());
  			if (idx == -1) { // case where the entry is a child file
  								// /a/b/c/d.txt
  				result = true;
  			} else {
  				if (entryPath.length() == idx + 1) { // case where the entry is
  														// a child file
  														// /a/b/c/d/
  					result = true;
  				}
  			}
  		}
  		return result;
  	}
docs: Checks if the entry is a direct child of the root Entry
  isDirectChildPath( '/a/b/c/' , '/a/b/c/d.txt') => true isDirectChildPath(
  '/a/b/c/' , '/a/b/c/d/') => true isDirectChildPath( '/a/b/c/' ,
  '/a/b/c/d/e.txt') => false
  
  @param rootEntryPath
  the root entry path
  @param entryPath
  the entry path to check
  @return true if the entry is a direct child of the root Entry