GetDataFileName returns the file name for a data file.
(dirPath string, fileID uint32)
| 29 | |
| 30 | // GetDataFileName returns the file name for a data file. |
| 31 | func 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. |
| 36 | func OpenHintFile(dirPath string, fileSize int64, fioType int8) (*DataFile, error) { |