MCPcopy
hub / github.com/WebODM/WebODM / compact

Method compact

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

Source from the content-addressed store, hash-verified

1410 plugin_signals.task_removed.send_robust(sender=self.__class__, task_id=task_id)
1411
1412 def compact(self):
1413 # Remove all images
1414 images_path = self.task_path()
1415 images = [os.path.join(images_path, i) for i in self.scan_images()]
1416 for im in images:
1417 try:
1418 os.unlink(im)
1419 except Exception as e:
1420 logger.warning(e)
1421
1422 self.compacted = True
1423 self.update_size(commit=True)
1424
1425 def check_public_edit(self):
1426 """

Callers 1

processMethod · 0.95

Calls 3

task_pathMethod · 0.95
scan_imagesMethod · 0.95
update_sizeMethod · 0.95

Tested by

no test coverage detected