fileutils

package
v0.0.0-...-4899cb1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 7 Imported by: 7

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 CopyLicense

func CopyLicense(dst, src string) error

CopyLicense copies the license file from folder src to folder dst.

func Copyfile

func Copyfile(dst, src string) error
func Copylink(dst, src string) error

func Copypath

func Copypath(dst string, src string, tests, all bool) error

Copypath copies the contents of src to dst, excluding any file that is not relevant to the Go compiler.

func RemoveAll

func RemoveAll(path string) error

RemoveAll removes path and any children it contains. Unlike os.RemoveAll it deletes read only files on Windows.

func ShouldSkip

func ShouldSkip(path string, info os.FileInfo, tests, all bool) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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