This PR cherry-picks the following commits:
- 440f5e5d2b
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
b8949166dc
commit
e27bc9faa8
|
|
@ -28,8 +28,8 @@ export async function mkdirIfNeeded(filePath: string) {
|
||||||
|
|
||||||
export async function removeFolders(dirs: string[]): Promise<Error[]> {
|
export async function removeFolders(dirs: string[]): Promise<Error[]> {
|
||||||
return await Promise.all(dirs.map((dir: string) =>
|
return await Promise.all(dirs.map((dir: string) =>
|
||||||
fs.promises.rm(dir, { recursive: true, force: true, maxRetries: 10 })
|
fs.promises.rm(dir, { recursive: true, force: true, maxRetries: 10 }).catch(e => e)
|
||||||
)).catch(e => e);
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function canAccessFile(file: string) {
|
export function canAccessFile(file: string) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue