Skip to main content

Module create

Module create 

Source
Expand description

Drive file/folder creation — the first content-mutating capability this feature exists for (issue #1574, ADR-0071).

Single-target, unlike file_move.rs’s N-file batch — so this follows rename.rs’s simpler linear-function shape (gate check, then a dry_run early return, then the mutating call, all inline in one function) rather than a Plan/Execute split: there’s no shared destination-fetch to amortize across a batch that doesn’t exist here. --dry-run and a real run therefore share the exact same gate classification by construction (same function, same early-return branch), not merely by convention.

Structs§

CreateOptions
Per-call create options.
CreateOutcome
The planned (and, after a real run, final) outcome of one create call.

Enums§

CreateResult
What happened (or, under --dry-run, would happen).

Functions§

create
Creates opts.name inside opts.parent_folder_id, gated by rules (the active account’s write_permissions.rules).