Documentation
¶
Index ¶
- func GetOwnerMode(fInfo os.FileInfo) (os.FileMode, int, int)
- func GetPathMode(path string) (os.FileMode, error)
- func GetUmask() os.FileMode
- func Lchtimes(path string, atime time.Time, mtime time.Time) error
- func NewReadSeeker(reader io.Reader, seeker io.Seeker) io.ReadSeeker
- func WriteAll(w io.Writer, data []byte) error
- type BytesReadCloser
- type QuotaWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOwnerMode ¶
GetOwnerMode returns the file mode, owner UID, and owner GID for the given file.
func GetPathMode ¶
GetPathMode returns a os.FileMode for the provided path.
func Lchtimes ¶ added in v7.0.2
Lchtimes sets the access and modification times of a path without following symlinks.
func NewReadSeeker ¶
NewReadSeeker combines provided io.Reader and io.Seeker into a new io.ReadSeeker.
Types ¶
type BytesReadCloser ¶
BytesReadCloser is a basic in-memory reader with a closer interface.
type QuotaWriter ¶
type QuotaWriter struct {
// contains filtered or unexported fields
}
QuotaWriter returns an error once a given write quota gets exceeded.
func NewQuotaWriter ¶
func NewQuotaWriter(writer io.Writer, quota int64) *QuotaWriter
NewQuotaWriter returns a new QuotaWriter wrapping the given writer.
If the given quota is negative, then no quota is applied.
Click to show internal directories.
Click to hide internal directories.