1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-08 03:23:26 +00:00

fs: add Wrap feature for FS to identify their parent FS (#1884)

This commit is contained in:
remusb
2017-12-06 17:14:34 +02:00
committed by GitHub
parent ebd7780188
commit 25b073c767
3 changed files with 49 additions and 4 deletions

View File

@@ -129,7 +129,7 @@ func NewFs(name, rpath string) (fs.Fs, error) {
WriteMimeType: false,
BucketBased: true,
CanHaveEmptyDirectories: true,
}).Fill(f).Mask(wrappedFs)
}).Fill(f).Mask(wrappedFs).WrapsFs(f, wrappedFs)
doDirChangeNotify := wrappedFs.Features().DirChangeNotify
if doDirChangeNotify != nil {