MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / GetDataFileName

Function GetDataFileName

engine/data/data_file.go:31–33  ·  view source on GitHub ↗

GetDataFileName returns the file name for a data file.

(dirPath string, fileID uint32)

Source from the content-addressed store, hash-verified

29
30// GetDataFileName returns the file name for a data file.
31func GetDataFileName(dirPath string, fileID uint32) string {
32 return filepath.Join(dirPath, fmt.Sprintf("%09d", fileID)+DataFileSuffix)
33}
34
35// OpenHintFile opens the hint index file.
36func OpenHintFile(dirPath string, fileSize int64, fioType int8) (*DataFile, error) {

Callers 1

OpenDataFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected