rename
This commit is contained in:
parent
125529dc76
commit
faf7801746
|
@ -261,9 +261,9 @@ export async function moveFile(
|
||||||
await fs.rename(sourcePath, destinationPath);
|
await fs.rename(sourcePath, destinationPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function deleteFolder(sourcePath: string): Promise<void> {
|
export async function deleteFolder(folderPath: string): Promise<void> {
|
||||||
if (!existsSync(sourcePath)) {
|
if (!existsSync(folderPath)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
fs.rmSync(sourcePath, { force: true, recursive: true });
|
fs.rmSync(folderPath, { force: true, recursive: true });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue