Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileStatIfExists ¶
FileStatIfExists returns the file info if the file exists, otherwise nil
Types ¶
type OpenOption ¶
type OpenOption func(*openOption)
func WithDisablePathCreation ¶
func WithDisablePathCreation() OpenOption
func WithIncrementalSuffixIfExists ¶
func WithIncrementalSuffixIfExists(fn func(string, fs.FileInfo) bool) OpenOption
func WithMustExistsBefore ¶
func WithMustExistsBefore() OpenOption
func WithPerm ¶
func WithPerm(perm fs.FileMode) OpenOption
func WithReadOnly ¶
func WithReadOnly() OpenOption
func WithTruncate ¶
func WithTruncate() OpenOption
func WithWriteOnly ¶
func WithWriteOnly() OpenOption
Click to show internal directories.
Click to hide internal directories.