MCPcopy Create free account
hub / github.com/astercloud/aster / IsInside

Method IsInside

pkg/sandbox/interface.go:37–37  ·  view source on GitHub ↗

IsInside 检查路径是否在沙箱内

(path string)

Source from the content-addressed store, hash-verified

35
36 // IsInside 检查路径是否在沙箱内
37 IsInside(path string) bool
38
39 // Read 读取文件内容
40 Read(ctx context.Context, path string) (string, error)

Callers 4

checkPathSecurityMethod · 0.65
WatchMethod · 0.65
TestLocalSandbox_FSFunction · 0.65
ListInfoMethod · 0.65

Implementers 6

RealFSpkg/tools/builtin/testutils.go
MockFSpkg/sandbox/mock.go
LocalFSpkg/sandbox/local_fs.go
RemoteFSpkg/sandbox/remote.go
AliyunFSpkg/sandbox/cloud/aliyun.go
VolcengineFSpkg/sandbox/cloud/volcengine.go

Calls

no outgoing calls

Tested by 1

TestLocalSandbox_FSFunction · 0.52