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

Method WriteFile

testing/generation/utils/root_folder.go:71–73  ·  view source on GitHub ↗

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

(relativePath string, data []byte, perm os.FileMode)

Source from the content-addressed store, hash-verified

69
70// WriteFile is equivalent to os.WriteFile, except that it uses the root path and the given relative path.
71func (root RootFolderLocation) WriteFile(relativePath string, data []byte, perm os.FileMode) error {
72 return os.WriteFile(filepath.ToSlash(filepath.Join(root.path, relativePath)), data, perm)
73}
74
75// WriteFileToDirectory is similar to WriteFile, except that it takes in a relative path for the directory containing
76// the file, along with the file name to be written. This is purely for convenience, as the same behavior can be

Callers 13

WriteRSACertsFunction · 0.45
WriteEd25519CertsFunction · 0.45
GenerateTestJWTsFunction · 0.45
writeJWKSToFileFunction · 0.45
WriteAtDirMethod · 0.45
NewDoltUserFunction · 0.45
initDatabaseMethod · 0.45
loadLibraryInternalFunction · 0.45
PersistChangesFunction · 0.45
dbInitFunction · 0.45
writeWALPositionMethod · 0.45

Calls

no outgoing calls

Tested by 4

WriteRSACertsFunction · 0.36
WriteEd25519CertsFunction · 0.36
GenerateTestJWTsFunction · 0.36
writeJWKSToFileFunction · 0.36