fs: fix operation not permitted
fix: #44720 (closed)
issue:
-
copyDir()
callscheckPathsSync()
, which invokeslstat()
causes error because of not checking the opts.filter
changes:
- check opts.filter before calling
checkPathsSync
and copy logic - cleanup
startCopy
function