filecopy

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 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 exist and is a file, the file is overwritten if it's not the same.

Jump to

Keyboard shortcuts

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