code: public static String getFullPathNoEndSeparator(final String aURLString) {
          final int pathnameStartIndex = aURLString.indexOf(UNIX_SEPARATOR);
          final int pathnameEndIndex = aURLString.lastIndexOf(UNIX_SEPARATOR);
          String aPath = aURLString.substring(0, pathnameEndIndex);
          return aPath;
      }
docs: Get base path from a path.
  
  @param aURLString UNIX or URI path
  @return base path