Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GAIR-NLP/factool
/ create_tempdir
Function
create_tempdir
factool/code/helper/_execution.py:132–135 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
130
131
@contextlib.contextmanager
132
def
create_tempdir():
133
with
tempfile.TemporaryDirectory()
as
dirname:
134
with
chdir(dirname):
135
yield
dirname
136
137
138
class
TimeoutException(Exception):
Callers
1
unsafe_execute
Function · 0.85
Calls
1
chdir
Function · 0.85
Tested by
no test coverage detected