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

gendocs: ignore missing rclone_mount.md, rclone_nfsmount.md, rclone_serve_nfs.md on windows

albertony813708c24dc9
diff --git a/cmd/gendocs/gendocs.go b/cmd/gendocs/gendocs.go
index e185ae9d8..5e779a744 100644
--- a/cmd/gendocs/gendocs.go
+++ b/cmd/gendocs/gendocs.go
@@ -170,8 +170,18 @@ rclone.org website.`,
name := filepath.Base(path)
cmd, ok := commands[name]
if !ok {
- if name == "rclone_mount.md" && runtime.GOOS == "darwin" {
- return nil // won't exist without -tags cmount
+ switch runtime.GOOS {
+ case "darwin":
+ if name == "rclone_mount.md" {
+ return nil // won't exist without -tags cmount
+ }
+ case "windows":
+ switch name {
+ case "rclone_mount.md":
+ return nil // won't exist without -tags cmount
+ case "rclone_nfsmount.md", "rclone_serve_nfs.md":
+ return nil // not supported
+ }
}
return fmt.Errorf("didn't find command for %q", name)
}