()
| 160 | } |
| 161 | |
| 162 | func (db *DB) getMergePath() string { |
| 163 | // Gets the database parent directory |
| 164 | parentDir := path.Dir(path.Clean(db.options.DirPath)) |
| 165 | // DB base path |
| 166 | basePath := path.Base(db.options.DirPath) |
| 167 | // Return the merge file path |
| 168 | return filepath.Join(parentDir, basePath+mergeDirName) |
| 169 | } |
| 170 | |
| 171 | // Load the merge data directory |
| 172 | func (db *DB) loadMergeFiles() error { |
no test coverage detected