Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

poll for Google Drive changes when mounted

Stefan Breuniga2e3af0523d6
diff --git a/amazonclouddrive/amazonclouddrive_test.go b/amazonclouddrive/amazonclouddrive_test.go
index be6e17a97..c92e81cb6 100644
--- a/amazonclouddrive/amazonclouddrive_test.go
+++ b/amazonclouddrive/amazonclouddrive_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/b2/b2_test.go b/b2/b2_test.go
index 2114bd7f5..1df0cea65 100644
--- a/b2/b2_test.go
+++ b/b2/b2_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/cmd/cmount/fs.go b/cmd/cmount/fs.go
index c7681ab32..44ac47cc4 100644
--- a/cmd/cmount/fs.go
+++ b/cmd/cmount/fs.go
@@ -48,6 +48,9 @@ func NewFS(f fs.Fs) *FS {
if readOnly {
fsys.FS.ReadOnly()
}
+ if pollInterval > 0 {
+ fsys.FS.PollChanges(pollInterval)
+ }
return fsys
}
diff --git a/cmd/cmount/mount.go b/cmd/cmount/mount.go
index 4f7606816..52ed96c1c 100644
--- a/cmd/cmount/mount.go
+++ b/cmd/cmount/mount.go
@@ -32,6 +32,7 @@ var (
debugFUSE = false
noSeek = false
dirCacheTime = 5 * 60 * time.Second
+ pollInterval = time.Minute
// mount options
readOnly = false
allowNonEmpty = false
@@ -58,6 +59,7 @@ func init() {
commandDefintion.Flags().BoolVarP(&debugFUSE, "debug-fuse", "", debugFUSE, "Debug the FUSE internals - needs -v.")
commandDefintion.Flags().BoolVarP(&noSeek, "no-seek", "", noSeek, "Don't allow seeking in files.")
commandDefintion.Flags().DurationVarP(&dirCacheTime, "dir-cache-time", "", dirCacheTime, "Time to cache directory entries for.")
+ commandDefintion.Flags().DurationVarP(&pollInterval, "poll-interval", "", pollInterval, "Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable.")
// mount options
commandDefintion.Flags().BoolVarP(&readOnly, "read-only", "", readOnly, "Mount read-only.")
commandDefintion.Flags().BoolVarP(&allowNonEmpty, "allow-non-empty", "", allowNonEmpty, "Allow mounting over a non-empty directory.")
diff --git a/cmd/mount/fs.go b/cmd/mount/fs.go
index 455864b3a..a5f12cd71 100644
--- a/cmd/mount/fs.go
+++ b/cmd/mount/fs.go
@@ -39,6 +39,9 @@ func NewFS(f fs.Fs) *FS {
if readOnly {
fsys.FS.ReadOnly()
}
+ if pollInterval > 0 {
+ fsys.FS.PollChanges(pollInterval)
+ }
return fsys
}
diff --git a/cmd/mount/mount.go b/cmd/mount/mount.go
index 0a9cde34a..eb67e8e18 100644
--- a/cmd/mount/mount.go
+++ b/cmd/mount/mount.go
@@ -28,6 +28,7 @@ var (
debugFUSE = false
noSeek = false
dirCacheTime = 5 * 60 * time.Second
+ pollInterval = time.Minute
// mount options
readOnly = false
allowNonEmpty = false
@@ -54,6 +55,7 @@ func init() {
commandDefintion.Flags().BoolVarP(&debugFUSE, "debug-fuse", "", debugFUSE, "Debug the FUSE internals - needs -v.")
commandDefintion.Flags().BoolVarP(&noSeek, "no-seek", "", noSeek, "Don't allow seeking in files.")
commandDefintion.Flags().DurationVarP(&dirCacheTime, "dir-cache-time", "", dirCacheTime, "Time to cache directory entries for.")
+ commandDefintion.Flags().DurationVarP(&pollInterval, "poll-interval", "", pollInterval, "Time to wait between polling for changes. Must be smaller than dir-cache-time. Only on supported remotes. Set to 0 to disable.")
// mount options
commandDefintion.Flags().BoolVarP(&readOnly, "read-only", "", readOnly, "Mount read-only.")
commandDefintion.Flags().BoolVarP(&allowNonEmpty, "allow-non-empty", "", allowNonEmpty, "Allow mounting over a non-empty directory.")
diff --git a/cmd/mountlib/fs.go b/cmd/mountlib/fs.go
index 0266f97e9..2dc5361a8 100644
--- a/cmd/mountlib/fs.go
+++ b/cmd/mountlib/fs.go
@@ -51,7 +51,20 @@ func NewFS(f fs.Fs) *FS {
fsys := &FS{
f: f,
}
+
fsys.root = newDir(fsys, f, fsDir)
+
+ return fsys
+}
+
+// PollChanges will poll the remote every pollInterval for changes if the remote
+// supports it. If a non-polling option is used, the given time interval can be
+// ignored
+func (fsys *FS) PollChanges(pollInterval time.Duration) *FS {
+ doDirChangeNotify := fsys.f.Features().DirChangeNotify
+ if doDirChangeNotify != nil {
+ doDirChangeNotify(fsys.root.ForgetPath, pollInterval)
+ }
return fsys
}
diff --git a/crypt/crypt2_test.go b/crypt/crypt2_test.go
index 9fa72d16a..6316a5d77 100644
--- a/crypt/crypt2_test.go
+++ b/crypt/crypt2_test.go
@@ -45,6 +45,7 @@ func TestFsMove2(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove2(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull2(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision2(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify2(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString2(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs2(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote2(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/crypt/crypt3_test.go b/crypt/crypt3_test.go
index 6525d6ffc..8b3d3cb97 100644
--- a/crypt/crypt3_test.go
+++ b/crypt/crypt3_test.go
@@ -45,6 +45,7 @@ func TestFsMove3(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove3(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull3(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision3(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify3(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString3(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs3(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote3(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/crypt/crypt_test.go b/crypt/crypt_test.go
index f2db8618b..4f9fcb0f4 100644
--- a/crypt/crypt_test.go
+++ b/crypt/crypt_test.go
@@ -45,6 +45,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/drive/drive.go b/drive/drive.go
index 4c1d15fae..947badce8 100644
--- a/drive/drive.go
+++ b/drive/drive.go
@@ -13,6 +13,7 @@ import (
"log"
"net/http"
"path"
+ "sort"
"strings"
"time"
@@ -889,6 +890,106 @@ func (f *Fs) DirMove(src fs.Fs, srcRemote, dstRemote string) error {
return nil
}
+// DirChangeNotify polls for changes from the remote and hands the path to the
+// given function. Only changes that can be resolved to a path through the
+// DirCache will handled.
+//
+// Automatically restarts itself in case of unexpected behaviour of the remote.
+//
+// Close the returned channel to stop being notified.
+func (f *Fs) DirChangeNotify(notifyFunc func(string), pollInterval time.Duration) chan bool {
+ quit := make(chan bool)
+ go func() {
+ select {
+ case <-quit:
+ return
+ default:
+ for {
+ f.dirchangeNotifyRunner(notifyFunc, pollInterval)
+ fs.Debugf(f, "Notify listener service ran into issues, restarting shortly.")
+ time.Sleep(pollInterval)
+ }
+ }
+ }()
+ return quit
+}
+
+func (f *Fs) dirchangeNotifyRunner(notifyFunc func(string), pollInterval time.Duration) {
+ var err error
+ var changeList *drive.ChangeList
+ var pageToken string
+ var largestChangeID int64
+
+ var startPageToken *drive.StartPageToken
+ err = f.pacer.Call(func() (bool, error) {
+ startPageToken, err = f.svc.Changes.GetStartPageToken().Do()
+ return shouldRetry(err)
+ })
+ if err != nil {
+ fs.Debugf(f, "Failed to get StartPageToken: %v", err)
+ return
+ }
+ pageToken = startPageToken.StartPageToken
+
+ for {
+ fs.Debugf(f, "Checking for changes on remote")
+ err = f.pacer.Call(func() (bool, error) {
+ changesCall := f.svc.Changes.List().PageToken(pageToken).Fields(googleapi.Field("nextPageToken,largestChangeId,newStartPageToken,items(fileId,file/parents(id))"))
+ if largestChangeID != 0 {
+ changesCall = changesCall.StartChangeId(largestChangeID)
+ }
+ if *driveListChunk > 0 {
+ changesCall = changesCall.MaxResults(*driveListChunk)
+ }
+ changeList, err = changesCall.Do()
+ return shouldRetry(err)
+ })
+ if err != nil {
+ fs.Debugf(f, "Failed to get Changes: %v", err)
+ return
+ }
+
+ pathsToClear := make([]string, 0)
+ for _, change := range changeList.Items {
+ if path, ok := f.dirCache.GetInv(change.FileId); ok {
+ pathsToClear = append(pathsToClear, path)
+ }
+
+ if change.File != nil {
+ for _, parent := range change.File.Parents {
+ if path, ok := f.dirCache.GetInv(parent.Id); ok {
+ pathsToClear = append(pathsToClear, path)
+ }
+ }
+ }
+ }
+ lastNotifiedPath := ""
+ sort.Strings(pathsToClear)
+ for _, path := range pathsToClear {
+ if lastNotifiedPath != "" && (path == lastNotifiedPath || strings.HasPrefix(path+"/", lastNotifiedPath)) {
+ continue
+ }
+ lastNotifiedPath = path
+ notifyFunc(path)
+ }
+
+ if changeList.LargestChangeId != 0 {
+ largestChangeID = changeList.LargestChangeId
+ }
+ if changeList.NewStartPageToken != "" {
+ pageToken = changeList.NewStartPageToken
+ fs.Debugf(f, "All changes were processed. Waiting for more.")
+ time.Sleep(pollInterval)
+ } else if changeList.NextPageToken != "" {
+ pageToken = changeList.NextPageToken
+ fs.Debugf(f, "There are more changes pending, checking now.")
+ } else {
+ fs.Debugf(f, "Did not get any page token, something went wrong! %+v", changeList)
+ return
+ }
+ }
+}
+
// DirCacheFlush resets the directory cache - used in testing as an
// optional interface
func (f *Fs) DirCacheFlush() {
@@ -1175,13 +1276,14 @@ func (o *Object) MimeType() string {
// Check the interfaces are satisfied
var (
- _ fs.Fs = (*Fs)(nil)
- _ fs.Purger = (*Fs)(nil)
- _ fs.Copier = (*Fs)(nil)
- _ fs.Mover = (*Fs)(nil)
- _ fs.DirMover = (*Fs)(nil)
- _ fs.DirCacheFlusher = (*Fs)(nil)
- _ fs.PutUncheckeder = (*Fs)(nil)
- _ fs.Object = (*Object)(nil)
- _ fs.MimeTyper = &Object{}
+ _ fs.Fs = (*Fs)(nil)
+ _ fs.Purger = (*Fs)(nil)
+ _ fs.Copier = (*Fs)(nil)
+ _ fs.Mover = (*Fs)(nil)
+ _ fs.DirMover = (*Fs)(nil)
+ _ fs.DirCacheFlusher = (*Fs)(nil)
+ _ fs.DirChangeNotifier = (*Fs)(nil)
+ _ fs.PutUncheckeder = (*Fs)(nil)
+ _ fs.Object = (*Object)(nil)
+ _ fs.MimeTyper = &Object{}
)
diff --git a/drive/drive_test.go b/drive/drive_test.go
index b45d3c307..098d94937 100644
--- a/drive/drive_test.go
+++ b/drive/drive_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/dropbox/dropbox_test.go b/dropbox/dropbox_test.go
index 51670b9dc..084780db5 100644
--- a/dropbox/dropbox_test.go
+++ b/dropbox/dropbox_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/fs/fs.go b/fs/fs.go
index 0604620f6..8b918aa87 100644
--- a/fs/fs.go
+++ b/fs/fs.go
@@ -267,6 +267,11 @@ type Features struct {
// If destination exists then return fs.ErrorDirExists
DirMove func(src Fs, srcRemote, dstRemote string) error
+ // DirChangeNotify calls the passed function with a path
+ // of a directory that has had changes. If the implementation
+ // uses polling, it should adhere to the given interval.
+ DirChangeNotify func(func(string), time.Duration) chan bool
+
// UnWrap returns the Fs that this Fs is wrapping
UnWrap func() Fs
@@ -307,6 +312,9 @@ func (ft *Features) Fill(f Fs) *Features {
if do, ok := f.(DirMover); ok {
ft.DirMove = do.DirMove
}
+ if do, ok := f.(DirChangeNotifier); ok {
+ ft.DirChangeNotify = do.DirChangeNotify
+ }
if do, ok := f.(UnWrapper); ok {
ft.UnWrap = do.UnWrap
}
@@ -346,6 +354,9 @@ func (ft *Features) Mask(f Fs) *Features {
if mask.DirMove == nil {
ft.DirMove = nil
}
+ if mask.DirChangeNotify == nil {
+ ft.DirChangeNotify = nil
+ }
// if mask.UnWrap == nil {
// ft.UnWrap = nil
// }
@@ -424,6 +435,14 @@ type DirMover interface {
DirMove(src Fs, srcRemote, dstRemote string) error
}
+// DirChangeNotifier is an optional interface for Fs
+type DirChangeNotifier interface {
+ // DirChangeNotify calls the passed function with a path
+ // of a directory that has had changes. If the implementation
+ // uses polling, it should adhere to the given interval.
+ DirChangeNotify(func(string), time.Duration) chan bool
+}
+
// UnWrapper is an optional interfaces for Fs
type UnWrapper interface {
// UnWrap returns the Fs that this Fs is wrapping
diff --git a/fstest/fstests/fstests.go b/fstest/fstests/fstests.go
index e8a9270ef..2e81b5013 100644
--- a/fstest/fstests/fstests.go
+++ b/fstest/fstests/fstests.go
@@ -577,6 +577,36 @@ func TestFsPrecision(t *testing.T) {
// FIXME check expected precision
}
+// TestFsDirChangeNotify tests that changes to directories are properly
+// propagated
+//
+// go test -v -remote TestDrive: -run '^Test(Setup|Init|FsDirChangeNotify)$' -verbose
+func TestFsDirChangeNotify(t *testing.T) {
+ skipIfNotOk(t)
+
+ // Check have DirChangeNotify
+ doDirChangeNotify := remote.Features().DirChangeNotify
+ if doDirChangeNotify == nil {
+ t.Skip("FS has no DirChangeNotify interface")
+ }
+
+ err := fs.Mkdir(remote, "dir")
+ require.NoError(t, err)
+
+ changes := []string{}
+ quitChannel := doDirChangeNotify(func(x string) {
+ changes = append(changes, x)
+ }, time.Second)
+ defer func() { close(quitChannel) }()
+
+ err = fs.Mkdir(remote, "dir/subdir")
+ require.NoError(t, err)
+
+ time.Sleep(2 * time.Second)
+
+ assert.Equal(t, []string{"dir"}, changes)
+}
+
// TestObjectString tests the Object String method
func TestObjectString(t *testing.T) {
skipIfNotOk(t)
diff --git a/ftp/ftp_test.go b/ftp/ftp_test.go
index cd66838f4..f3c944908 100644
--- a/ftp/ftp_test.go
+++ b/ftp/ftp_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/googlecloudstorage/googlecloudstorage_test.go b/googlecloudstorage/googlecloudstorage_test.go
index e43cfa8b1..0c2c5cfad 100644
--- a/googlecloudstorage/googlecloudstorage_test.go
+++ b/googlecloudstorage/googlecloudstorage_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/hubic/hubic_test.go b/hubic/hubic_test.go
index 3bcf78403..d29fe423c 100644
--- a/hubic/hubic_test.go
+++ b/hubic/hubic_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/local/local_test.go b/local/local_test.go
index 1de407409..b3b3025f7 100644
--- a/local/local_test.go
+++ b/local/local_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/onedrive/onedrive_test.go b/onedrive/onedrive_test.go
index 1861c2f2d..1a065ee53 100644
--- a/onedrive/onedrive_test.go
+++ b/onedrive/onedrive_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/s3/s3_test.go b/s3/s3_test.go
index 983d9627c..40a875a1a 100644
--- a/s3/s3_test.go
+++ b/s3/s3_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/sftp/sftp_test.go b/sftp/sftp_test.go
index c55aff973..d2cf9728f 100644
--- a/sftp/sftp_test.go
+++ b/sftp/sftp_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/swift/swift_test.go b/swift/swift_test.go
index 37635e722..0887fe389 100644
--- a/swift/swift_test.go
+++ b/swift/swift_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }
diff --git a/yandex/yandex_test.go b/yandex/yandex_test.go
index 5d1788d06..ce04ca3ad 100644
--- a/yandex/yandex_test.go
+++ b/yandex/yandex_test.go
@@ -44,6 +44,7 @@ func TestFsMove(t *testing.T) { fstests.TestFsMove(t) }
func TestFsDirMove(t *testing.T) { fstests.TestFsDirMove(t) }
func TestFsRmdirFull(t *testing.T) { fstests.TestFsRmdirFull(t) }
func TestFsPrecision(t *testing.T) { fstests.TestFsPrecision(t) }
+func TestFsDirChangeNotify(t *testing.T) { fstests.TestFsDirChangeNotify(t) }
func TestObjectString(t *testing.T) { fstests.TestObjectString(t) }
func TestObjectFs(t *testing.T) { fstests.TestObjectFs(t) }
func TestObjectRemote(t *testing.T) { fstests.TestObjectRemote(t) }