getHintPath returns the hint file path for the given file ID and directory
(fid int64, dir string)
| 43 | |
| 44 | // getHintPath returns the hint file path for the given file ID and directory |
| 45 | func getHintPath(fid int64, dir string) string { |
| 46 | if IsMergeFile(fid) { |
| 47 | seq := GetMergeSeq(fid) |
| 48 | return filepath.Join(dir, fmt.Sprintf("merge_%d%s", seq, HintSuffix)) |
| 49 | } |
| 50 | return filepath.Join(dir, strconv2.Int64ToStr(fid)+HintSuffix) |
| 51 | } |
| 52 | |
| 53 | // HintEntry represents an entry in the hint file |
| 54 | type HintEntry struct { |