Documentation ¶
Overview ¶
Package osutil provides helper functions around package os.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCorrupted ¶
IsCorrupted returns true if the given error has occured during copying. If this is true, then the user must notify the user and discard the reader.
Types ¶
type TempFile ¶
TempFile is a temporary file.
func Consume ¶
Consume consumes the given io.Reader and returns a temporary file that will be deleted when it is closed.
func Mktemp ¶
Mktemp creates a new temp file in a predefined temporary directory. Pattern is optional.
Click to show internal directories.
Click to hide internal directories.