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

Function SafeInputPath

internal/validate/path.go:16–18  ·  view source on GitHub ↗

SafeInputPath validates an upload/read source path. Delegates to localfileio.SafeInputPath.

(path string)

Source from the content-addressed store, hash-verified

14// SafeInputPath validates an upload/read source path.
15// Delegates to localfileio.SafeInputPath.
16func SafeInputPath(path string) (string, error) {
17 return localfileio.SafeInputPath(path)
18}
19
20// SafeEnvDirPath validates an environment-provided application directory path.
21// Delegates to localfileio.SafeEnvDirPath.

Callers 15

runCheckFunction · 0.92
commentBodyFunction · 0.92
runFunction · 0.92
validateMarkdownSpecFunction · 0.92
validateMarkdownDiffSpecFunction · 0.92
executeFormSubmitFunction · 0.92
readFileFunction · 0.92
ResolveLocalImagePathsFunction · 0.92
drive_status.goFile · 0.92
drive_pull.goFile · 0.92
drive_push.goFile · 0.92

Calls 1

SafeInputPathFunction · 0.92