filemanager: github.com/hacdias/filemanager/fileutils Index | Files

package fileutils

import "github.com/hacdias/filemanager/fileutils"

Index

Package Files

copy.go dir.go file.go

func Copy Uses

func Copy(fs afero.Fs, src, dst string) error

Copy copies a file or folder from one place to another.

func CopyDir Uses

func CopyDir(fs afero.Fs, source string, dest string) error

CopyDir copies a directory from source to dest and all of its sub-directories. It doesn't stop if it finds an error during the copy. Returns an error if any.

func CopyFile Uses

func CopyFile(fs afero.Fs, source string, dest string) error

CopyFile copies a file from source to dest and returns an error if any.

Package fileutils imports 6 packages (graph). Updated 2019-07-01. Refresh now. Tools for package owners.