MCPcopy Index your code
hub / github.com/diffgram/diffgram / archive_input

Method archive_input

walrus/methods/input/input_update.py:200–210  ·  view source on GitHub ↗

Caution: Also removes associated file Under assumption that if we are archiving an input we don't want the file.

(self)

Source from the content-addressed store, hash-verified

198 process_media_queue_manager.router(item)
199
200 def archive_input(self):
201 """
202 Caution: Also removes associated file
203 Under assumption that if we are archiving an input we don't want the file.
204 """
205
206 for input in self.input_list:
207 input.archived = True
208 self.remove_associated_file(input)
209 self.remove_copied_file(input)
210 self.session.add(input)
211
212 def remove_copied_file(self, input):
213 if input.mode == 'copy_file' and input.newly_copied_file:

Callers 1

api_input_updateFunction · 0.95

Calls 3

remove_copied_fileMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected