Skip to content

fs::copy on Windows has a 260 character filename limit #67403

Closed
@jdm

Description

@jdm

It relies on the CopyFileExW Windows API, which has path limits that yield surprising runtime behaviour. We could opt in to longer path limits (32k instead of 260) by prepending \? to the string, according to that same documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: WindowsT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions