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

Function cd

tests/utils/__init__.py:21–27  ·  view source on GitHub ↗
(newdir)

Source from the content-addressed store, hash-verified

19
20@contextmanager
21def cd(newdir):
22 prevdir = os.getcwd()
23 os.chdir(os.path.expanduser(newdir))
24 try:
25 yield
26 finally:
27 os.chdir(prevdir)
28
29
30def to_posixpath(path):

Callers

nothing calls this directly

Calls 2

getcwdMethod · 0.45
chdirMethod · 0.45

Tested by

no test coverage detected