MCPcopy
hub / github.com/borgbackup/borg / query_size_limit

Method query_size_limit

src/borg/remote.py:1131–1133  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1129 self.enospc = 0
1130
1131 def query_size_limit(self):
1132 available_space = shutil.disk_usage(self.basedir).free
1133 self.size_limit = int(min(available_space * 0.25, 2**31))
1134
1135 def prefixed_key(self, key, complete):
1136 # just prefix another byte telling whether this key refers to a complete chunk

Callers 2

__init__Method · 0.95
backoffMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected