MCPcopy
hub / github.com/lektor/lektor / delete_folder

Method delete_folder

lektor/publisher.py:369–376  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

367 self.log_buffer.append(str(e))
368
369 def delete_folder(self, filename):
370 if isinstance(filename, str):
371 filename = filename.encode("utf-8")
372 try:
373 self.con.rmd(filename)
374 except Exception as e:
375 self.log_buffer.append(str(e))
376 self._known_folders.discard(filename)
377
378
379class FtpTlsConnection(FtpConnection):

Callers 1

consolidate_listingMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected