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

Method create

src/borg/cache.py:999–1004  ·  view source on GitHub ↗

Create a new empty cache at `self.path`

(self)

Source from the content-addressed store, hash-verified

997 self._chunks = None
998
999 def create(self):
1000 """Create a new empty cache at `self.path`"""
1001 self.path.mkdir(parents=True, exist_ok=True)
1002 with open(self.path / "README", "w") as fd:
1003 fd.write(CACHE_README)
1004 self.cache_config.create()
1005
1006 def open(self):
1007 if not self.path.is_dir():

Callers 1

__init__Method · 0.95

Calls 2

writeMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected