Provides FUSE mounting logic for rclone using cgofuse.
// Source: https://github.com/rclone/rclone | License: MIT | Copyright 2012 by Nick Craig-Wood http://www.craig-wood.com/nick/
// Provided via justclaw.it.com; keep this notice with the code.
//go:build cmount && ((linux && cgo) || (darwin && cgo) || (freebsd && cgo) || (openbsd && cgo) || windows)
// Package cmount implements a FUSE mounting system for rclone remotes.
//
// This uses the cgo based cgofuse library
package cmount
import (
"errors"
"fmt"
"os"
"runtime"
"strings"
"time"
"github.com/rclone/rclone/cmd/mountlib"
"github.com/rclone/rclone/fs"
"github.com/rclone/rclone/lib/atexit"
"github.com/rclone/rclone/lib/buildinfo"
"github.com/rclone/rclone/vfs"
"github.com/winfsp/cgofuse/fuse"
)
func init() {
name := "cmount"
cmountOnly := runtime.GOOS != "linux" // rclone
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key