Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
21
def
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
30
def
to_posixpath(path):
Callers
nothing calls this directly
Calls
2
getcwd
Method · 0.45
chdir
Method · 0.45
Tested by
no test coverage detected