MCPcopy
hub / github.com/deadc0de6/dotdrop / get_tempdir

Function get_tempdir

tests/helpers.py:69–73  ·  view source on GitHub ↗

Get a temporary directory

()

Source from the content-addressed store, hash-verified

67
68
69def get_tempdir():
70 """Get a temporary directory"""
71 tmpdir = tempfile.mkdtemp(suffix=TMPSUFFIX)
72 os.chmod(tmpdir, 0o755)
73 return tmpdir
74
75
76def create_random_file(directory, content=None,

Callers 15

test_updateMethod · 0.90
test_removepathMethod · 0.90
test_diremptyMethod · 0.90
test_genericMethod · 0.90
test_apply_transMethod · 0.90
test_transMethod · 0.90
test_handle_bin_fileMethod · 0.90
test_filetypeMethod · 0.90
test_generateMethod · 0.90
test_listingsMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_updateMethod · 0.72
test_removepathMethod · 0.72
test_diremptyMethod · 0.72
test_genericMethod · 0.72
test_apply_transMethod · 0.72
test_transMethod · 0.72
test_handle_bin_fileMethod · 0.72
test_filetypeMethod · 0.72
test_generateMethod · 0.72
test_listingsMethod · 0.72