Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: WindowsT-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions