fileutils

package
v0.3.27 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

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