MCPcopy Index your code
hub / github.com/github/copilot-sdk / ReadFile

Method ReadFile

go/session_fs_provider.go:23–23  ·  view source on GitHub ↗

ReadFile reads the full content of a file. Return os.ErrNotExist (or wrap it) if the file does not exist.

(path string)

Source from the content-addressed store, hash-verified

21 // ReadFile reads the full content of a file. Return os.ErrNotExist (or wrap it)
22 // if the file does not exist.
23 ReadFile(path string) (string, error)
24 // WriteFile writes content to a file, creating it and parent directories if needed.
25 // mode is an optional POSIX-style permission mode. Pass nil to use the OS default.
26 WriteFile(path string, content string, mode *int) error

Callers 1

ReadFileMethod · 0.65

Implementers 2

testSessionFSHandlergo/internal/e2e/session_fs_e2e_test.go
inMemorySqliteProvidergo/internal/e2e/session_fs_sqlite_e2e_

Calls

no outgoing calls

Tested by

no test coverage detected