The Wayback Machine - http://web.archive.org/web/20260208012424/https://github.com/nodejs/node/issues/36158
Skip to content

fs.copyFile is slow on Windows #36158

@asklar

Description

@asklar

if (CopyFileW(req->file.pathw, req->fs.info.new_pathw, overwrite) != 0) {

It looks like copyFile is using the older CopyFile API instead of taking advantage of the async awaitable CopyFileEx API

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceIssues and PRs related to the performance of Node.js.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions