move the logic in `cpSync` that copies a directory from src to dest from JavaScript to C++ increasing its performance Note: this improvement is not applied if the filter option is provided, such optimization will be looked into separately PR-URL: https://github.com/nodejs/node/pull/58461 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>