MCPcopy Create free account
hub / github.com/modelscope/ms-agent / create_user_workdir

Function create_user_workdir

ms_agent/app/doc_research.py:209–214  ·  view source on GitHub ↗

Create dedicated working directory for user

(user_id: str)

Source from the content-addressed store, hash-verified

207
208
209def create_user_workdir(user_id: str) -> str:
210 """Create dedicated working directory for user"""
211 user_base_dir = os.path.join(BASE_WORKDIR, f'user_{user_id}')
212 if not os.path.exists(user_base_dir):
213 os.makedirs(user_base_dir)
214 return user_base_dir
215
216
217def create_task_workdir(user_id: str) -> str:

Callers 3

create_task_workdirFunction · 0.70
clear_workspaceFunction · 0.70
get_session_file_pathFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected