blob: aba734fe13d1ddc3546166bb8f2df76a4709df5b (
plain)
1
2
3
4
5
6
7
8
9
10
|
export function unlink(path: string | URL, callback: (err?: Error) => void) {
if (!callback) throw new Error("No callback function supplied");
Deno.remove(path)
.then((_) => callback())
.catch(callback);
}
export function unlinkSync(path: string | URL) {
Deno.removeSync(path);
}
|