rclone

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client wraps rclone command-line calls.

func NewClient

func NewClient(rclonePath ...string) *Client

NewClient creates a new rclone client. If rclonePath is empty, "rclone" is used (found via PATH).

func (*Client) Bin added in v0.5.0

func (c *Client) Bin() string

Bin returns the rclone binary path.

func (*Client) Check

func (c *Client) Check(localPath, dest string) error

Check verifies a file exists at the destination.

func (*Client) Copy

func (c *Client) Copy(localPath, dest string) error

Copy uploads a local file to an rclone remote destination. dest should be like "gdrive:QuestMedia/device123/Videos/"

func (*Client) CopyDir

func (c *Client) CopyDir(localDir, dest string) error

CopyDir uploads a local directory to an rclone remote destination.

func (*Client) CopyFrom

func (c *Client) CopyFrom(remoteSrc, localDest string) error

CopyFrom downloads a remote file to a local path.

func (*Client) IsReachable added in v0.5.0

func (c *Client) IsReachable(remote string) bool

IsReachable checks if a remote destination is reachable with a short timeout.

func (*Client) ListRemotes

func (c *Client) ListRemotes() ([]string, error)

ListRemotes returns configured rclone remotes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL