Skip to content

ndi.cloud.download.set_file_info

  SET_FILE_INFO - set file info parameters for different modes

  NEWDOCSTRUCT = SET_FILE_INFO(DOCSTRUCT, MODE, FILEPATH)

  Given a document structure downloaded from ndi.cloud.api.documents.get_document,
  set the 'delete_original' and 'ingest' fields as appropriate to the mode.

  The MODE can be 'local' or 'hybrid'. If MODE is 'local', then
    'delete_original' and 'ingest' are set to 1. Otherwise,
    the are set to 0.

  FILEPATH is the location of any locally downloaded files (for 'local' MODE).