Skip to content

copy does not pin destination #106

@evgmik

Description

@evgmik

When a file or dir is copied, it does not get pinned, and thus candidate for removal which is not intended.
Test case

$ ali touch /t1
$ ali cp /t1 t2
$ ali ls
SIZE  BKEND  MODTIME                  PATH  PIN  CACHED  HINT
0 B   44 B   2021-03-14 23:01:14 EDT  /t1    ✔     ✔     enc:chacha20-zip:guess
0 B   44 B   2021-03-14 23:01:14 EDT  /t2          ✔     enc:chacha20-zip:guess

Notice that pin for copied /t2 is unset.

I would say fs.Copy should preserve the pin status.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNot a bug, it's a new feature or improvement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions