Documentation
¶
Overview ¶
Package fileops contains the narrowly scoped local mutations Eta permits.
Index ¶
- type Root
- func (r Root) Copy(from Root, sourceRelative, destinationRelative string) error
- func (r Root) CopyRegular(from Root, sourceRelative, destinationRelative string) error
- func (r Root) Delete(relative string) error
- func (r Root) EnsureDirectory(relative string) error
- func (r Root) Rename(from, to string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
func (Root) Copy ¶
Delete removes a local file, symlink, or directory tree within its root. Copy copies a contained regular file or complete directory tree into this root. Directory copies are assembled in a sibling staging directory and atomically promoted only after every entry has been copied.
func (Root) CopyRegular ¶
CopyRegular copies one contained regular file into this root. It refuses overwrite, directories, and symlink destinations; callers can therefore use it for ordinary Explorer copy/paste without special destination semantics.
func (Root) EnsureDirectory ¶
EnsureDirectory creates one contained directory after its parent has been resolved, refusing symlinks and existing non-directory targets.