candle.modac_utils.register_file_to_modac

candle.modac_utils.register_file_to_modac#

candle.modac_utils.register_file_to_modac(file_path, metadata, destination_path)#

Register a file in the “Model and Data Clearning House” (MoDAC). The file size is limited to 2GBs.

Parameters:
  • file_path (string) – path on disk for the file to be uploaded

  • metadata (dictionary) – dictionary of attribute/value pairs of metadata to associate with the file in MoDaC

  • destination (string) – The path on MoDaC in form of collection/filename

Returns:

The returned code from the PUT request

Return type:

integer