Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is the interface for options passed to Create.
func AccessTime ¶
AccessTime specifies the access time of the target file.
func Fsync ¶
func Fsync() Option
Fsync enables the invocation of fsync() on the target file and its containing directory.
func ModificationTime ¶
ModificationTime specifies the modification time of the target file.
func Permissions ¶
Permissions specifies the Unix permissions to be set on the target file.
func Preallocate ¶
Preallocate allocates the specified amount of bytes in the target file, regardless of the amount of content written. Not all filesystems and kernel versions support preallocating space.
Click to show internal directories.
Click to hide internal directories.