MCPcopy Create free account
hub / github.com/openai/plugins / handle_create_folder

Function handle_create_folder

plugins/box/skills/box/scripts/box_rest.py:140–157  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

138
139
140def handle_create_folder(args: argparse.Namespace) -> None:
141 payload = {
142 "name": args.name,
143 "parent": {"id": args.parent_folder_id},
144 }
145 query = encode_query({"fields": args.fields})
146 url = f"{args.base_url}/folders"
147 if query:
148 url = f"{url}?{query}"
149 dump_json(
150 api_request(
151 "POST",
152 url,
153 args.token,
154 body=json_body(payload),
155 headers={"Content-Type": "application/json"},
156 )
157 )
158
159
160def _sanitize_filename(name: str) -> str:

Callers

nothing calls this directly

Calls 4

encode_queryFunction · 0.85
json_bodyFunction · 0.85
dump_jsonFunction · 0.70
api_requestFunction · 0.70

Tested by

no test coverage detected