code: public /*@Nullable*/DbxEntry getMetadata(final String path, boolean includeMediaInfo)
          throws DbxException
      {
          DbxPathV1.checkArg("path", path);
  
          String host = this.host.getApi();
          String apiPath = "1/metadata/auto" + path;
          /*@Nullable*/String[] params = {
              "list", "false",
              "include_media_info", includeMediaInfo ? "true" : null,
          };
  
          return doGet(host, apiPath, params, null, new DbxRequestUtil.ResponseHandler</*@Nullable*/DbxEntry>() {
              @Override
              public /*@Nullable*/DbxEntry handle(HttpRequestor.Response response) throws DbxException
              {
                  if (response.getStatusCode() == 404) return null;
                  if (response.getStatusCode() != 200) throw DbxRequestUtil.unexpectedStatus(response);
                  // Will return 'null' for "is_deleted=true" entries.
                  return DbxRequestUtil.readJsonFromResponse(DbxEntry.ReaderMaybeDeleted, response);
              }
          });
      }
docs: Get the file or folder metadata for a given path.
  
  <pre>
  DbxClientV1 dbxClient = ...
  DbxEntry entry = dbxClient.getMetadata("/Photos");
  if (entry == null) {
  System.out.println("No file or folder at that path.");
  } else {
  System.out.print(entry.toStringMultiline());
  }
  </pre>
  
  @param path
  The path to the file or folder (see {@link DbxPathV1}).
  
  @param includeMediaInfo
  If {@code true}, then if the return value is a {@link DbxEntry.File}, it might have
  its {@code photoInfo} and {@code mediaInfo} fields filled in.
  
  @return If there is a file or folder at the given path, return the
  metadata for that path.  If there is no file or folder there,
  return {@code null}.