code: protected String getParentPath( String path ) {
          int slash = path.lastIndexOf('/');
          if (slash != -1) {
              return path.substring(0, slash);
          }
          return null;
      }
docs: creates the parent path from the given path by removing the last '/' and everything after that
  
  @param path the path
  @return parent path