MCPcopy
hub / github.com/treeverse/dvc / unprotect

Method unprotect

dvc/output.py:1079–1084  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1077 return len(obj) if obj else 0
1078
1079 def unprotect(self):
1080 if self.exists and self.use_cache:
1081 with TqdmCallback(
1082 size=self.meta.nfiles or -1, desc=f"Unprotecting {self}"
1083 ) as callback:
1084 self.cache.unprotect(self.fs_path, callback=callback)
1085
1086 def get_dir_cache(self, **kwargs) -> Optional["Tree"]:
1087 if not self.is_dir_checksum:

Callers 4

test_checkout_relinkFunction · 0.45
test_unprotectFunction · 0.45
test_is_protectedFunction · 0.45

Calls 1

TqdmCallbackClass · 0.85

Tested by 4

test_checkout_relinkFunction · 0.36
test_unprotectFunction · 0.36
test_is_protectedFunction · 0.36