forked from TrueCloudLab/rclone
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:
parent
cdf12b1fc8
commit
cd0d43fffb
1 changed files with 6 additions and 0 deletions
6
fs/fs.go
6
fs/fs.go
|
@ -678,9 +678,15 @@ func (ft *Features) Mask(f Fs) *Features {
|
||||||
// if mask.UnWrap == nil {
|
// if mask.UnWrap == nil {
|
||||||
// ft.UnWrap = nil
|
// ft.UnWrap = nil
|
||||||
// }
|
// }
|
||||||
|
// if mask.Wrapper == nil {
|
||||||
|
// ft.Wrapper = nil
|
||||||
|
// }
|
||||||
if mask.DirCacheFlush == nil {
|
if mask.DirCacheFlush == nil {
|
||||||
ft.DirCacheFlush = nil
|
ft.DirCacheFlush = nil
|
||||||
}
|
}
|
||||||
|
if mask.PublicLink == nil {
|
||||||
|
ft.PublicLink = nil
|
||||||
|
}
|
||||||
if mask.PutUnchecked == nil {
|
if mask.PutUnchecked == nil {
|
||||||
ft.PutUnchecked = nil
|
ft.PutUnchecked = nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue