-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs: fix opts.filter issue in cp async #44922
fs: fix opts.filter issue in cp async #44922
Conversation
c5c3fa6
to
37639ea
Compare
8c5a267
to
bf9c3bb
Compare
bf9c3bb
to
8bc9f40
Compare
Co-authored-by: Antoine du Hamel <[email protected]>
Co-authored-by: Antoine du Hamel <[email protected]>
/cc @nodejs/fs |
Commit Queue failed- Loading data for nodejs/node/pull/44922 ✔ Done loading data for nodejs/node/pull/44922 ----------------------------------- PR info ------------------------------------ Title fs: fix opts.filter issue in cp async (#44922) Author Tho (@thoqbk, first-time contributor) Branch thoqbk:fix-opts-filter-in-cp-async -> nodejs:main Labels fs, author ready, needs-ci Commits 3 - fs: fix opts.filter issue in cp async - fs: use if instead of ternary - Update lib/internal/fs/cp/cp.js Committers 2 - Tho - GitHub PR-URL: https://github.com/nodejs/node/pull/44922 Fixes: https://github.com/nodejs/node/issues/44720 Reviewed-By: Antoine du Hamel Reviewed-By: Minwoo Jung ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/44922 Fixes: https://github.com/nodejs/node/issues/44720 Reviewed-By: Antoine du Hamel Reviewed-By: Minwoo Jung -------------------------------------------------------------------------------- ℹ This PR was created on Sat, 08 Oct 2022 06:25:08 GMT ✔ Approvals: 2 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/44922#pullrequestreview-1135337026 ✔ - Minwoo Jung (@JungMinu): https://github.com/nodejs/node/pull/44922#pullrequestreview-1135524737 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2022-10-09T11:43:51Z: https://ci.nodejs.org/job/node-test-pull-request/47137/ - Querying data for job/node-test-pull-request/47137/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 44922 From https://github.com/nodejs/node * branch refs/pull/44922/merge -> FETCH_HEAD ✔ Fetched commits as 78d280a76821..3fe69b82b4f2 -------------------------------------------------------------------------------- [main c5804042ee] fs: fix opts.filter issue in cp async Author: Tho Date: Sat Oct 8 14:06:59 2022 +0800 2 files changed, 45 insertions(+), 19 deletions(-) [main 74ddfbb006] fs: use if instead of ternary Author: Tho Date: Sun Oct 9 13:04:56 2022 +0800 1 file changed, 1 insertion(+), 1 deletion(-) [main a58683d117] Update lib/internal/fs/cp/cp.js Author: Tho Date: Sun Oct 9 18:28:16 2022 +0800 1 file changed, 1 insertion(+), 1 deletion(-) ✔ Patches applied There are 3 commits in the PR. Attempting autorebase. Rebasing (2/6)https://github.com/nodejs/node/actions/runs/3220375855 |
Landed in 5c9ea8a |
PR-URL: #44922 Fixes: #44720 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
Fixes: #44720
issues:
opts.filter
properly.As a result, the path validation logic still gets triggered
even though the file or folder is filtered out
opts.filter
e.g. need to check and call
handleFilter
before all copieschanges:
checkPaths
as a central place to validate the paths(with consideration of opts.filter) before copying
related PR: #44786