spf13 / afero

A FileSystem Abstraction System for Go
Apache License 2.0
5.93k stars 508 forks source link

add LinkOwner interface #342 #343

Closed jxsl13 closed 8 months ago

jxsl13 commented 2 years ago

Adds the ability to change ownership of symlinks.

read the issue at: #342

The use case is described in the issue as well.

Extends the Symlinker interface, requires more methods to be implemented. Might be a breaking change in that regard which could be resolved by removing the LinkOwner interface from the Symlinker interface.

The change may be less severe due to most structs that implement parts of the symlinker interface have also been updated.

Feedback required :)