mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
refactor: fs.renameLocalFile
This commit is contained in:
parent
ba62c9f554
commit
460bfe95f0
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue