Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
func NewDirectory ¶
func NewDirectory(path string, mode *os.FileMode, user interface{}, group interface{}, ensureParentDirs bool) (*Directory, error)
NewDirectory creates a new directory with the given path, mode, user and group. user and group can be either a string (user name/group name), an int64 (UID/GID) or nil.
func (*Directory) EnsureParentDirs ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func NewFile ¶
func NewFile(path string, mode *os.FileMode, user interface{}, group interface{}, data []byte) (*File, error)
NewFile creates a new file with the given path, data, mode, user and group. user and group can be either a string (user name/group name), an int64 (UID/GID) or nil.
Click to show internal directories.
Click to hide internal directories.