MCPcopy Create free account
hub / github.com/dolthub/doltgresql / ReadFile

Method ReadFile

testing/generation/utils/root_folder.go:59–61  ·  view source on GitHub ↗

ReadFile is equivalent to os.ReadFile, except that it uses the root path and the given relative path.

(relativePath string)

Source from the content-addressed store, hash-verified

57
58// ReadFile is equivalent to os.ReadFile, except that it uses the root path and the given relative path.
59func (root RootFolderLocation) ReadFile(relativePath string) ([]byte, error) {
60 return os.ReadFile(filepath.ToSlash(filepath.Join(root.path, relativePath)))
61}
62
63// ReadFileFromDirectory is similar to ReadFile, except that it takes in a relative path for the directory containing
64// the file, along with the file name to be read. This is purely for convenience, as the same behavior can be

Callers 12

ParseTestsFileFunction · 0.45
runJWKSServerFunction · 0.45
createJWTFunction · 0.45
PasswordMethod · 0.45
loadControlMethod · 0.45
LoadSQLFilesMethod · 0.45
LoadSQLFunctionNamesMethod · 0.45
ReadConfigFromYamlFileFunction · 0.45
dbInitFunction · 0.45
readWALPositionMethod · 0.45
ReadFileFromDirectoryMethod · 0.45

Calls

no outgoing calls

Tested by 2

runJWKSServerFunction · 0.36
createJWTFunction · 0.36