fs.CopyFile should support copying metadata

Open
#175 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
go

Research direction

Start in fs/copy.go at lines 161-176 and compare CopyFile with CopyDir's metadata behavior. Determine how the optional metadata-copying behavior should be exposed, then confirm that CopyFile can preserve metadata when requested while retaining its existing behavior otherwise.

Written by the indexing model from the issue text.

Description

enhancement

https://github.com/containerd/continuity/blob/180525291bb77dea7062ac4281fcd38e2a3d76c5/fs/copy.go#L161-L176

The current implementation of CopyFile does not support copying metadata.
CopyFile should optionally copy the metadata as in CopyDir

Dominant language
Go
Stars
155
Forks
77
Avg merge
4d 11h
Merged PRs (30d)
8

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from containerd/continuity

All issues in containerd/continuity

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.