MCPcopy Create free account
hub / github.com/github/gh-aw / VirtualFileExists

Function VirtualFileExists

pkg/parser/virtual_fs_wasm.go:25–31  ·  view source on GitHub ↗

VirtualFileExists checks if a path exists in the virtual filesystem.

(path string)

Source from the content-addressed store, hash-verified

23
24// VirtualFileExists checks if a path exists in the virtual filesystem.
25func VirtualFileExists(path string) bool {
26 if virtualFiles == nil {
27 return false
28 }
29 _, ok := virtualFiles[path]
30 return ok
31}
32
33func init() {
34 // Override readFileFunc in wasm builds to check virtual files first.

Callers 1

ResolveIncludePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected