Closed bowtiedgnome closed 5 months ago
For completeness: These are the steps to reproduce the error.
Create a file main.ts
with these contents:
import fs from "node:fs";
import * as path from "node:path";
const dir = path.join(import.meta.dirname!, "foo");
fs.rmSync(dir);
foo
next to main.ts
deno run -A main.ts
Version: Deno 1.42.4
The following code is resulting in an error
see: https://github.com/denoland/deno/blob/main/ext/node/polyfills/internal/fs/utils.mjs
Most likely the linked code needs to be updated to:
The error that I see.
(I can work around it by setting options.force, however, this seems like a bug).