(source: string, target: string)
| 1097 | }; |
| 1098 | |
| 1099 | const moveSqliteFileSet = async (source: string, target: string): Promise<void> => { |
| 1100 | await renameWithRetry(source, target); |
| 1101 | fsyncDirectory(dirname(target)); |
| 1102 | for (const suffix of ["-wal", "-shm"] as const) { |
| 1103 | if (fs.existsSync(`${source}${suffix}`)) { |
| 1104 | await renameWithRetry(`${source}${suffix}`, `${target}${suffix}`); |
| 1105 | fsyncDirectory(dirname(target)); |
| 1106 | } else { |
| 1107 | await rmWithRetry(`${target}${suffix}`); |
| 1108 | } |
| 1109 | } |
| 1110 | }; |
| 1111 | |
| 1112 | const moveExistingSqliteFileSet = async (source: string, target: string): Promise<void> => { |
| 1113 | for (const suffix of fileSetSuffixes) { |
no test coverage detected