Skip to content

Add WritablePath.copy_from() #34

Description

@barneygale

To support metadata transfers, we need to add a method to WritablePath that allows receivers to copy metadata from some ReadablePath source. Currently we have _copy_from(), but it's got an underscore prefix.

This will affect pathlib.Path

Perhaps the method should return an iterator that emits progress reports? If so can someone come up with a better name than iter_copy_from()? :)

See also python/cpython#131636

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

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions