Skip to content

ndi.database.internal.list_binary_files

 LIST_BINARY_FILES - Scans a dataset for binary files of documents

  FILE_MANIFEST = ndi.database.internal.list_binary_files(NDI_DATASET, DATABASE_DOCUMENTS)

  Inputs:
    NDI_DATASET - an ndi.dataset object
    DATABASE_DOCUMENTS - documents returned by searching the dataset using database_search

  Outputs:
    FILE_MANIFEST - A structure with the following fields:
        'name' - The name of the file
        'file_path' - The full (absolute) pathname of the file
        'docid' - The document id that the file is associated with
        'bytes' - The size of the file in bytes