mirror of
https://github.com/moonrepo/setup-rust.git
synced 2025-04-29 13:30:03 +00:00
12 lines
265 B
TypeScript
12 lines
265 B
TypeScript
import * as core from '@actions/core';
|
|
import * as io from '@actions/io';
|
|
|
|
export async function rmrf(dir: string) {
|
|
core.debug(`Deleting ${dir}`);
|
|
|
|
try {
|
|
await io.rmRF(dir);
|
|
} catch (error: unknown) {
|
|
core.warning(`Failed to delete ${dir}: ${error}`);
|
|
}
|
|
}
|