(source: string, target: string)
| 1110 | }; |
| 1111 | |
| 1112 | const moveExistingSqliteFileSet = async (source: string, target: string): Promise<void> => { |
| 1113 | for (const suffix of fileSetSuffixes) { |
| 1114 | const from = `${source}${suffix}`; |
| 1115 | if (!fs.existsSync(from)) continue; |
| 1116 | const to = `${target}${suffix}`; |
| 1117 | if (fs.existsSync(to)) { |
| 1118 | await rmWithRetry(from); |
| 1119 | } else { |
| 1120 | await renameWithRetry(from, to); |
| 1121 | fsyncDirectory(dirname(to)); |
| 1122 | } |
| 1123 | } |
| 1124 | }; |
| 1125 | |
| 1126 | const copySqliteFileSet = (source: string, target: string): void => { |
| 1127 | removeSqliteFileSet(target); |
no test coverage detected