docs(filesystem): document write() mode=create (#1608)#1623
Merged
qin-ctx merged 2 commits intovolcengine:mainfrom Apr 22, 2026
Merged
docs(filesystem): document write() mode=create (#1608)#1623qin-ctx merged 2 commits intovolcengine:mainfrom
qin-ctx merged 2 commits intovolcengine:mainfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
qin-ctx
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR #1608 added
mode=\"create\"toPOST /api/v1/content/write(plusov write --mode createCLI flag), with a.md/.txt/.json/.yaml/.yml/.toml/.py/.js/.tsextension whitelist and409 Conflicton existing paths.docs/en/api/03-filesystem.mdanddocs/zh/api/03-filesystem.mdstill describewrite()as strictly an update operation, so consumers reading the HTTP API reference cannot discover the new capability without readingopenviking/storage/content_write.py.Changes
Mirror edits in EN + ZH filesystem API docs, scoped to the
write()section:mode=\"create\"as an alternative to updating.moderow: values extended toreplace,append, orcreate.replace/appendneed existing file,createreturns 409 on existing) + the extension whitelist plus automatic parent-directory creation.No CLI example changes (stays a replace example to avoid scope creep); the CLI section can be expanded in a follow-up if maintainers prefer. No code changes.
Verification
_CREATE_ALLOWED_EXTENSIONS/_create_and_write/_safe_statbranching in feat(content-write): 支持 mode=create 创建新文件 #1608.