filecopy

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: GPL-2.0 Imports: 5 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 copies files from one path to another

func New

func New(debugLogFn func(string, ...interface{})) *Client

New returns a client

func (*Client) Upload

func (c *Client) Upload(src string, dst string) (string, error)

Upload copies the file with src path to the dst path. If the destination directory does not exist, it is created. If the destination path exist and is not a regular file an error is returned. If it exists, is a file and it differs the file is overwritten.

Jump to

Keyboard shortcuts

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