osutils

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REMOTE_IMPORT_PATH string = "/tmp/archive.backup"
)

Variables

This section is empty.

Functions

func Exists

func Exists(path string) (bool, error)

func NewRemoteOperations

func NewRemoteOperations(sshCfg command.SshConfig) *remoteOperations

func SafeCreate

func SafeCreate(name ...string) (file *os.File, err error)

SafeCreate creates a file, creating parent directories if needed

func SafeCreateSSH

func SafeCreateSSH(client sftpClient, name ...string) (file *sftp.File, err error)

SafeCreateSSH creates a file, creating parent directories if needed on a remote machine via an ssh client

Types

This section is empty.

Jump to

Keyboard shortcuts

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