fs: add missing PublicLink to mask

The enables wrapping file systems to declare that they don't support
PublicLink if the underlying fs doesn't.
This commit is contained in:
Nick Craig-Wood 2019-03-20 11:59:00 +00:00
parent cdf12b1fc8
commit cd0d43fffb

View file

@ -678,9 +678,15 @@ func (ft *Features) Mask(f Fs) *Features {
// if mask.UnWrap == nil {
// ft.UnWrap = nil
// }
// if mask.Wrapper == nil {
// ft.Wrapper = nil
// }
if mask.DirCacheFlush == nil {
ft.DirCacheFlush = nil
}
if mask.PublicLink == nil {
ft.PublicLink = nil
}
if mask.PutUnchecked == nil {
ft.PutUnchecked = nil
}