avid.common.artefact.fileHelper.update_artefactlist

avid.common.artefact.fileHelper.update_artefactlist(destination_file, source_artefacts, update_existing=False, rootPath=None, savePathsRelative=True, wait_time=10)

Helper function that updates the content of an artefact file with a passed artefact list. :param destination_file: File which content should be updated :param source_artefacts: List of artefacts the destination_file should be updated with :param update_existing: Indicates of existing/simelar artefacts in the file should also be updated or ignored. :param rootPath: root path that should be used for relative path operations :param savePathsRelative: indicates if paths should be stored as relative paths :param wait_time: if the destination file is locked, the update function will wait and retry. This is the time in seconds the function should wait and try to update until it returns with an error, if not successful.