ndi.database.fun.extract_docs_files
EXTRACT_DOC_FILES - extract a copy of all ndi.documents and files to path
[DOCS,TARGET_PATH] = EXTRACT_DOC_FILES(NDI_SESSION_OBJ, TARGET_PATH)
Copies the ndi.document objects from an ndi.session object or an
ndi.dataset object. The files associated with the documents DOCS
will be placed in the directory TARGET_PATH.
If TARGE_TPATH is not given, then a subdirectory inside
ndi_globals.path.temppath is used and the path is returned as
an output.