Skip to content

Conversation

@npaun
Copy link
Contributor

@npaun npaun commented Dec 3, 2025

Fixes #58947. This implements the errorOnExists check for onDir, which we previously had only for onFile.

@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Dec 3, 2025
@npaun npaun force-pushed the fix-fs-cp-errorOnExist-directory branch from 5d975d2 to b91cbae Compare December 3, 2025 20:39
@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.51%. Comparing base (aa98dd0) to head (726ef1f).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #60946      +/-   ##
==========================================
- Coverage   92.24%   88.51%   -3.74%     
==========================================
  Files         344      704     +360     
  Lines      139442   208806   +69364     
  Branches    22294    40322   +18028     
==========================================
+ Hits       128630   184826   +56196     
- Misses      10587    15966    +5379     
- Partials      225     8014    +7789     
Files with missing lines Coverage Δ
lib/internal/fs/cp/cp.js 88.35% <100.00%> (+2.60%) ⬆️

... and 478 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dario-piotrowicz dario-piotrowicz self-requested a review December 3, 2025 22:00
@npaun npaun force-pushed the fix-fs-cp-errorOnExist-directory branch from b91cbae to 5c9b517 Compare December 3, 2025 22:06
@anonrig anonrig added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 4, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 4, 2025
@nodejs-github-bot
Copy link
Collaborator

@npaun
Copy link
Contributor Author

npaun commented Dec 18, 2025

Gentle bump on this PR, as it seems like the only blocker for landing is re-running CI due to flakes?

@lpinca
Copy link
Member

lpinca commented Dec 24, 2025

CI is currently under security embargo.

@npaun npaun force-pushed the fix-fs-cp-errorOnExist-directory branch from 5c9b517 to 726ef1f Compare January 16, 2026 22:47
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

@jasnell jasnell added the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 17, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 17, 2026
@nodejs-github-bot nodejs-github-bot merged commit 24b1650 into nodejs:main Jan 17, 2026
62 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 24b1650

aduh95 pushed a commit that referenced this pull request Jan 20, 2026
PR-URL: #60946
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Dario Piotrowicz <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistency in fs.cp operation

10 participants