2 people reported

All time, since Jul 30.

fs.cp behavior changes with filter

“In Bun that default is honoured normally, but dropped as soon as a filter is supplied: the copy then silently leaves existing files alone.”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/6029/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

fs.cp copy behavior changes when filter is supplied.

Is this your bug?

File my report
Where
node:fs compatibility
Error text
error: cannot copy /tmp/tmp.VSw6l9c8MJ/dir to a subdirectory of self /tmp/tmp.VSw6l9c8MJ/dir
Versions
1.3.14
Platforms
Linux, macOS
How bad
Breaks a normal workflow.

Original reports2, newest first

  1. fs.cp* with filter fail to repeatedly copy directory with symlinks#37106
  2. fs.cpSync ignores the default force: true when a filter is supplied (silently skips overwrites)#36494

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.