MCPcopy Index your code
hub / github.com/larksuite/cli / SetDefaultFS

Function SetDefaultFS

cmd/init.go:13–18  ·  view source on GitHub ↗

SetDefaultFS replaces the global filesystem implementation used by internal packages. The provided fs must implement the vfs.FS interface. If fs is nil, the default OS filesystem is restored. Call this before Build or Execute to take effect.

(fs vfs.FS)

Source from the content-addressed store, hash-verified

11//
12// Call this before Build or Execute to take effect.
13func SetDefaultFS(fs vfs.FS) {
14 if fs == nil {
15 fs = vfs.OsFs{}
16 }
17 vfs.DefaultFS = fs
18}

Callers 1

TestBuild_ExternalAPIFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestBuild_ExternalAPIFunction · 0.68