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

Method remove

dvc/output.py:988–997  ·  view source on GitHub ↗
(self, ignore_remove=False)

Source from the content-addressed store, hash-verified

986 return added, False if added else modified
987
988 def remove(self, ignore_remove=False):
989 try:
990 self.fs.remove(self.fs_path, recursive=True)
991 except FileNotFoundError:
992 pass
993 if self.protocol != Schemes.LOCAL:
994 return
995
996 if ignore_remove:
997 self.ignore_remove()
998
999 def move(self, out: "Output") -> None:
1000 src_exists = self.exists

Calls 1

ignore_removeMethod · 0.95