Documentation ¶
Index ¶
Constants ¶
View Source
const ModeUserRW = 0600 // rw-------
View Source
const ModeUserRWX = 0700 // rwx------
View Source
const ModeUserRWXGroupRX = 0750 // rwxr-x---
Variables ¶
View Source
var ErrUnsupportedFileType = errors.New("unsupported file type")
ErrUnsupportedFileType is returned when attempting to copy a file type that's not supported.
Functions ¶
func CopyDir ¶
CopyDir recursively copies a directory from 'srcDir' to 'dstDir', preserving soft links. All regular files will be hard copied. Note that file attributes are not preserved, so this should only be used when the folder contents are required in the original structure. This implementation is based on [1].
[1] https://github.com/moby/moby/blob/master/daemon/graphdriver/copy/copy.go
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.