mirror of
https://github.com/denoland/deno
synced 2024-11-05 18:45:24 +00:00
8 lines
209 B
TypeScript
8 lines
209 B
TypeScript
const path = await Deno.makeTempFile({ dir: "./subdir/" });
|
|
if (path.startsWith(Deno.cwd())) {
|
|
console.log("good", path);
|
|
} else {
|
|
throw Error("bad " + path);
|
|
}
|
|
console.log(path);
|
|
await Deno.remove(path);
|