Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
123
def
changedir(dir):
124
cwd = os.getcwd()
125
os.chdir(dir)
126
yield
127
os.chdir(cwd)
128
129
130
def
is_root():
Callers
15
test_extract
Function · 0.85
test_fuse_mount_hardlinks
Function · 0.85
test_return_codes
Function · 0.85
_assert_test_caches
Function · 0.85
_assert_test_tagged
Function · 0.85
_assert_test_keep_tagged
Function · 0.85
test_symlink_extract
Function · 0.85
test_hardlinked_symlinks_extract
Function · 0.85
test_directory_timestamps1
Function · 0.85
test_directory_timestamps2
Function · 0.85
test_directory_timestamps3
Function · 0.85
test_atime
Function · 0.85
Calls
no outgoing calls
Tested by
15
test_extract
Function · 0.68
test_fuse_mount_hardlinks
Function · 0.68
test_return_codes
Function · 0.68
test_symlink_extract
Function · 0.68
test_hardlinked_symlinks_extract
Function · 0.68
test_directory_timestamps1
Function · 0.68
test_directory_timestamps2
Function · 0.68
test_directory_timestamps3
Function · 0.68
test_atime
Function · 0.68
test_birthtime
Function · 0.68
test_sparse_file
Function · 0.68
test_unusual_filenames
Function · 0.68