fileutils – github.com/mrunalp/fileutils Index | Files | Directories

package fileutils

import "github.com/mrunalp/fileutils"

Index

Functions

func CopyDirectory

func CopyDirectory(source string, dest string) error

CopyDirectory copies the files under the source directory to dest directory. The dest directory is created if it does not exist.

func CopyFile

func CopyFile(source string, dest string) error

CopyFile copies the file at source to dest

func MkdirAllNewAs

func MkdirAllNewAs(path string, mode os.FileMode, ownerUID, ownerGID int) error

MkdirAllNewAs creates a directory (include any along the path) and then modifies ownership ONLY of newly created directories to the requested uid/gid. If the directories along the path exist, no change of ownership will be performed

Source Files

fileutils.go idtools.go

Directories

PathSynopsis
cmd
cmd/gocp
Version
v0.5.1 (latest)
Published
Oct 4, 2023
Platform
linux/amd64
Imports
5 packages
Last checked
1 month ago

Tools for package owners.