MCPcopy Index your code
hub / github.com/borgbackup/borg / write

Method write

src/borg/helpers/misc.py:164–173  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

162 return ""
163
164 def write(self, s):
165 if not self.closed:
166 try:
167 return super().write(s)
168 except BrokenPipeError:
169 try:
170 super().close()
171 except OSError:
172 pass
173 return len(s)
174
175
176def iter_separated(fd, sep=None, read_size=4096):

Callers 5

get_cache_dirFunction · 0.45
secure_eraseFunction · 0.45
process_directiveFunction · 0.45
rst_to_textFunction · 0.45
ansi_escapesFunction · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected