fileutils

package module
v0.0.0-...-d734b7f Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: BSD-2-Clause Imports: 4 Imported by: 5

README

fileutils

Copying and moving files, how hard could it possible be ?

Documentation

Overview

package fileutils provides utililty methods to copy and move files and directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(dst, src string) error

CopyFile is a convenience method that calls CopyFile on a Copier zero value.

Types

type Copier

type Copier struct {
}

A Copier copies files. The operation of Copier's public functions are controled by its public fields. If none are set, the Copier behaves accoriding to the zero value rules of each public field.

func (*Copier) CopyFile

func (c *Copier) CopyFile(dst, src string) error

CopyFile copies the contents of src to dst atomically.

Jump to

Keyboard shortcuts

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