From cd0d43fffb5653a6b2e6874077596dabbaab5050 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 20 Mar 2019 11:59:00 +0000 Subject: [PATCH] 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. --- fs/fs.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fs/fs.go b/fs/fs.go index f4552a589..feb081208 100644 --- a/fs/fs.go +++ b/fs/fs.go @@ -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 }