MCPcopy
hub / github.com/lektor/lektor / append

Method append

lektor/publisher.py:300–311  ·  view source on GitHub ↗
(self, filename, data)

Source from the content-addressed store, hash-verified

298 self._known_folders.add(path)
299
300 def append(self, filename, data):
301 if not isinstance(filename, str):
302 filename = filename.decode("utf-8")
303
304 input = io.BytesIO(data.encode("utf-8"))
305
306 try:
307 self.con.storbinary("APPE " + filename, input)
308 except FTPError as e:
309 self.log_buffer.append(str(e))
310 return False
311 return True
312
313 def get_file(self, filename, out=None):
314 if not isinstance(filename, str):

Callers 11

_get_ssh_cmdFunction · 0.45
get_commandMethod · 0.45
connectMethod · 0.45
mkdirMethod · 0.45
get_fileMethod · 0.45
upload_fileMethod · 0.45
rename_fileMethod · 0.45
delete_fileMethod · 0.45
delete_folderMethod · 0.45
upload_artifactMethod · 0.45
consolidate_listingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected