Documentation
¶
Index ¶
- type Storage
- func (storage *Storage) CreateDirectory(targetPath string) error
- func (storage *Storage) CreateFile(targetPath string) error
- func (storage *Storage) DirectoryExists(targetPath string) bool
- func (storage *Storage) FileExists(targetPath string) bool
- func (storage *Storage) GetBase() string
- func (storage *Storage) GetDefaultPermissions() os.FileMode
- func (storage *Storage) GetPath(targetPath string) string
- func (storage *Storage) OpenFile(targetPath string) (*os.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage represents a storage.
func NewStorage ¶
NewStorage creates a new storage.
func (*Storage) CreateDirectory ¶
CreateDirectory creates the directory.
func (*Storage) CreateFile ¶
CreateFile creates the file.
func (*Storage) DirectoryExists ¶
DirectoryExists returns true if the directory exists.
func (*Storage) FileExists ¶
FileExists returns true if the file exists.
func (*Storage) GetDefaultPermissions ¶
GetDefaultPermissions returns the default permissions for new files.
Click to show internal directories.
Click to hide internal directories.