(source: string, target: string)
| 1124 | }; |
| 1125 | |
| 1126 | const copySqliteFileSet = (source: string, target: string): void => { |
| 1127 | removeSqliteFileSet(target); |
| 1128 | for (const suffix of fileSetSuffixes) { |
| 1129 | const from = `${source}${suffix}`; |
| 1130 | const to = `${target}${suffix}`; |
| 1131 | if (fs.existsSync(from)) { |
| 1132 | fs.copyFileSync(from, to); |
| 1133 | fsyncFileIfExists(to); |
| 1134 | } else { |
| 1135 | fs.rmSync(to, { force: true }); |
| 1136 | } |
| 1137 | } |
| 1138 | fsyncDirectory(dirname(target)); |
| 1139 | }; |
| 1140 | |
| 1141 | const removeSqliteFileSet = (path: string): void => { |
| 1142 | for (const suffix of fileSetSuffixes) fs.rmSync(`${path}${suffix}`, { force: true }); |
no test coverage detected