MCPcopy Index your code
hub / github.com/WebODM/WebODM / get_task_backup_stream

Method get_task_backup_stream

app/models/task.py:546–550  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

544 logger.warning("Cannot read backup file: %s" % str(e))
545
546 def get_task_backup_stream(self):
547 self.write_backup_file()
548 zip_dir = self.task_path("")
549 paths = [{'n': os.path.relpath(os.path.join(dp, f), zip_dir), 'fs': os.path.join(dp, f)} for dp, dn, filenames in os.walk(zip_dir) for f in filenames]
550 return self.zip_stream(paths)
551
552 def get_asset_file_or_stream(self, asset):
553 """

Callers 1

getMethod · 0.80

Calls 3

write_backup_fileMethod · 0.95
task_pathMethod · 0.95
zip_streamMethod · 0.95

Tested by

no test coverage detected