MCPcopy
hub / github.com/larksuite/cli / Save

Method Save

extension/fileio/types.go:42–42  ·  view source on GitHub ↗

Save writes content to the target path and returns a SaveResult. The default implementation validates via SafeOutputPath, creates parent directories, and writes atomically.

(path string, opts SaveOptions, body io.Reader)

Source from the content-addressed store, hash-verified

40 // The default implementation validates via SafeOutputPath, creates
41 // parent directories, and writes atomically.
42 Save(path string, opts SaveOptions, body io.Reader) (SaveResult, error)
43}
44
45// FileInfo is a minimal subset of os.FileInfo covering actual CLI usage.

Callers 15

SaveResponseFunction · 0.65
markdown_fetch.goFile · 0.65
SaveMethod · 0.65
saveTranscriptToFileFunction · 0.65
saveDetailTranscriptFunction · 0.65
downloadMediaFileFunction · 0.65
downloadIMResourceToPathFunction · 0.65

Implementers 14

LocalFileIOinternal/vfs/localfileio/localfileio.g
failingSaveFileIOshortcuts/markdown/markdown_test.go
statOnlyFileIOshortcuts/markdown/markdown_test.go
permissiveFIOshortcuts/apps/walk_html_publish_candi
readFailingFIOshortcuts/apps/html_publish_tarball_te
attachmentTestFileIOshortcuts/base/record_upload_attachmen
testResolvedFileIOshortcuts/common/runner_jq_test.go
sheetWriteImageMemoryFileIOshortcuts/sheets/backward/lark_sheets_
bodyFileTestIOshortcuts/mail/mail_errors_test.go
statErrorFileIOshortcuts/drive/drive_preview_test.go
failSaveFileIOshortcuts/drive/drive_sync_test.go
deleteOnCloseFileIOshortcuts/drive/drive_sync_test.go

Calls

no outgoing calls

Tested by 9

SaveMethod · 0.52
SaveMethod · 0.52
SaveMethod · 0.52
SaveMethod · 0.52
SaveMethod · 0.52
SaveMethod · 0.52