MCPcopy
hub / github.com/charmbracelet/wish / NewFileSystemHandler

Function NewFileSystemHandler

scp/filesystem.go:21–25  ·  view source on GitHub ↗

NewFileSystemHandler return a Handler based on the given dir.

(root string)

Source from the content-addressed store, hash-verified

19
20// NewFileSystemHandler return a Handler based on the given dir.
21func NewFileSystemHandler(root string) Handler {
22 return &fileSystemHandler{
23 root: filepath.Clean(root),
24 }
25}
26
27func (h *fileSystemHandler) chtimes(path string, mtime, atime int64) error {
28 if mtime == 0 || atime == 0 {

Callers 4

mainFunction · 0.92
TestFilesystemFunction · 0.85
TestFSFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestFilesystemFunction · 0.68
TestFSFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…