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

Fix missing fs.Dir -> fs.Directory

Nick Craig-Woodf0512d1a52c1
diff --git a/fs/test_all.go b/fs/test_all.go
index e8c0ad4eb..dfe83c7e3 100644
--- a/fs/test_all.go
+++ b/fs/test_all.go
@@ -232,10 +232,11 @@ func (t *test) cleanFs() error {
if err != nil {
return err
}
- return entries.ForDirError(func(dir *fs.Dir) error {
- if fstest.MatchTestRemote.MatchString(dir.Name) {
- log.Printf("Purging %s%s", t.remote, dir.Name)
- dir, err := fs.NewFs(t.remote + dir.Name)
+ return entries.ForDirError(func(dir fs.Directory) error {
+ remote := dir.Remote()
+ if fstest.MatchTestRemote.MatchString(remote) {
+ log.Printf("Purging %s%s", t.remote, remote)
+ dir, err := fs.NewFs(t.remote + remote)
if err != nil {
return err
}