package fileutils
import "github.com/mrunalp/fileutils"
Index ¶
- func CopyDirectory(source string, dest string) error
- func CopyFile(source string, dest string) error
- func MkdirAllNewAs(path string, mode os.FileMode, ownerUID, ownerGID int) error
Functions ¶
func CopyDirectory ¶
CopyDirectory copies the files under the source directory to dest directory. The dest directory is created if it does not exist.
func CopyFile ¶
CopyFile copies the file at source to dest
func MkdirAllNewAs ¶
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 ¶
Directories ¶
Path | Synopsis |
---|---|
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.