Skip to content

ndi.database.implementations.fun.ingest_plan

  INGEST_PLAN - ingest files from an ndi_document file_info into a database

  [SOURCE_FILENAME_LIST, DESTINATION_FILENAME_LIST, TO_DELETE_LIST] = ...
    ndi.database.implementations.fun.ingest_plan(NDI_DOCUMENT_OBJ, INGESTION_DIRECTORY)

  Plan to ingest all of the files from an ndi.document NDI_DOCUMENT_OBJ into the directory INGESTION_DIRECTORY.
  The source files to be copied are returned in a cell array SOURCE_FILENAME_LIST, and the
  corresponding destination where each file should be copied is returned in a cell array
  DESINATION_FILENAME_LIST.

  A list of files (full path) to be deleted after successful addition of the document to the
  database is returned in the cell array TO_DELETE_LIST. 

  See also: ndi.database.implementations.fun.ingest