refactor: fs.renameLocalFile

This commit is contained in:
Rhys Arkins 2021-03-20 21:54:03 +01:00
parent ba62c9f554
commit 460bfe95f0

View file

@ -59,6 +59,14 @@ export async function deleteLocalFile(fileName: string): Promise<void> {
}
}
// istanbul ignore next
export async function renameLocalFile(
fromFile: string,
toFile: string
): Promise<void> {
await fs.move(join(localDir, fromFile), join(localDir, toFile));
}
// istanbul ignore next
export async function ensureDir(dirName: string): Promise<void> {
await fs.ensureDir(dirName);