MCPcopy Create free account
hub / github.com/CloudyKit/jet / NewOSFileSystemLoader

Function NewOSFileSystemLoader

loader.go:63–67  ·  view source on GitHub ↗

NewOSFileSystemLoader returns an initialized OSFileSystemLoader.

(dirPath string)

Source from the content-addressed store, hash-verified

61
62// NewOSFileSystemLoader returns an initialized OSFileSystemLoader.
63func NewOSFileSystemLoader(dirPath string) *OSFileSystemLoader {
64 return &OSFileSystemLoader{
65 dir: filepath.FromSlash(dirPath),
66 }
67}
68
69// Exists returns true if a file is found under the template path after converting it to a file path
70// using the OS's path seperator and joining it with the loader's directory path.

Callers 8

parse_test.goFile · 0.85
TestFileResolveFunction · 0.85
TestIncludeIfNotExistsFunction · 0.85
TestExecReturnFunction · 0.85
TestTryCatchFunction · 0.85
TestWhitespaceControlFunction · 0.85

Calls

no outgoing calls

Tested by 7

TestFileResolveFunction · 0.68
TestIncludeIfNotExistsFunction · 0.68
TestExecReturnFunction · 0.68
TestTryCatchFunction · 0.68
TestWhitespaceControlFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…