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

cmount: windows: improve error message on missing winfsp

divinity761e8ee3b81313
diff --git a/cmd/cmount/mount.go b/cmd/cmount/mount.go
index a2ccd4b85..9bb1ab490 100644
--- a/cmd/cmount/mount.go
+++ b/cmd/cmount/mount.go
@@ -8,6 +8,7 @@ package cmount
import (
"errors"
"fmt"
+ "strings"
"os"
"runtime"
"time"
@@ -149,7 +150,11 @@ func mount(VFS *vfs.VFS, mountPath string, opt *mountlib.Options) (<-chan error,
go func() {
defer func() {
if r := recover(); r != nil {
- errChan <- fmt.Errorf("mount failed: %v", r)
+ err := fmt.Errorf("mount failed: %v", r)
+ if strings.Contains(strings.ToLower(err.Error()), "cannot find winfsp") {
+ err = fmt.Errorf("%w\nHint: Install WinFsp from https://winfsp.dev/rel/", err)
+ }
+ errChan <- err
}
}()
var err error