code: protected String path(String repoPath, boolean withIndex)
     {
        String path = repoPath.substring(workspaceName(repoPath).length());
  
        if (path.length() > 0)
        {
           if (!withIndex)
           {
              return TextUtil.removeIndexFromPath(path);
           }
           return path;
        }
  
        return "/";
     }
docs: Extracts path from repository path.
  
  @param repoPath repository path
  @param withIndex indicates whether the index must be removed or not
  @return path