Documentation ¶
Overview ¶
Package filestorage implements Storage interface that uses files on disk as storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileStorage ¶
type FileStorage struct {
// contains filtered or unexported fields
}
FileStorage implements Storage interface for saving files on disk.
func New ¶
func New(dest string, perm fs.FileMode) (*FileStorage, error)
New returns a new FileStorage at the destination.
func (*FileStorage) RootDir ¶ added in v1.7.0
func (s *FileStorage) RootDir() string
Click to show internal directories.
Click to hide internal directories.