Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶
type FileStorage struct { BaseDir string PathPrefix string Blacklists []*regexp.Regexp MkdirPermission os.FileMode WritePermission os.FileMode SaveErrIfExists bool SafeChars string // contains filtered or unexported fields }
func New ¶
func New(baseDir string, options ...Option) *FileStorage
type Option ¶
type Option func(h *FileStorage)
func WithBlacklist ¶
func WithMkdirPermission ¶
func WithPathPrefix ¶
func WithSafeChars ¶
func WithSaveErrIfExists ¶
func WithWritePermission ¶
Click to show internal directories.
Click to hide internal directories.