MCPcopy Create free account
hub / github.com/microsoft/typescript-go / GetFile

Method GetFile

internal/project/snapshotfs.go:75–77  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

73}
74
75func (s *SnapshotFS) GetFile(fileName string) FileHandle {
76 return s.GetFileByPath(fileName, s.toPath(fileName))
77}
78
79func (s *SnapshotFS) FileExists(fileName string, path tspath.Path) bool {
80 if _, ok := s.overlays[path]; ok {

Callers 1

TestSnapshotFSFunction · 0.95

Calls 2

GetFileByPathMethod · 0.95
toPathMethod · 0.45

Tested by 1

TestSnapshotFSFunction · 0.76