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

Function changedir

src/borg/testsuite/__init__.py:123–127  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

121
122@contextmanager
123def changedir(dir):
124 cwd = os.getcwd()
125 os.chdir(dir)
126 yield
127 os.chdir(cwd)
128
129
130def is_root():

Callers 15

test_extractFunction · 0.85
test_return_codesFunction · 0.85
_assert_test_cachesFunction · 0.85
_assert_test_taggedFunction · 0.85
_assert_test_keep_taggedFunction · 0.85
test_symlink_extractFunction · 0.85
test_atimeFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_extractFunction · 0.68
test_return_codesFunction · 0.68
test_symlink_extractFunction · 0.68
test_atimeFunction · 0.68
test_birthtimeFunction · 0.68
test_sparse_fileFunction · 0.68
test_unusual_filenamesFunction · 0.68