-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
enhancementNot a bug, it's a new feature or improvementNot a bug, it's a new feature or improvement
Description
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
Labels
enhancementNot a bug, it's a new feature or improvementNot a bug, it's a new feature or improvement