Documentation ¶
Index ¶
- type Driver
- type FileInfo
- func (f FileInfo) Append(content any) error
- func (f FileInfo) Dir() string
- func (f FileInfo) Extension() string
- func (f FileInfo) IsDir() bool
- func (f FileInfo) ModTime() time.Time
- func (f FileInfo) Mode() fs.FileMode
- func (f FileInfo) Name() string
- func (f FileInfo) Path() string
- func (f FileInfo) Remove() error
- func (f FileInfo) RemoveDir() error
- func (f FileInfo) Size() int64
- func (f FileInfo) Sys() any
- func (f FileInfo) Touch() error
- func (f FileInfo) Write(content any) error
- type Metadata
- type StorageSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { Init(params string) error SetWorkingDir(path string) error WorkingDir() string Touch(path string) error WriteJson(path string, content any) error Write(path string, content any) error Append(path string, content any) error SetMetadata(path string, meta Metadata) error GetMetadata(path string) (*Metadata, error) CopyDir(src, dest string) error CopyFile(src, dest string) error Stat(path string) (FileInfo, error) IsFileExists(path string) bool IsDirExists(path string) bool IsDir(path string) bool ReadAll(path string) ([]byte, error) ReadAllString(path string) (string, error) Mkdir(path string, perm ...fs.FileMode) error MkdirAll(path string, perm ...fs.FileMode) error Remove(path string) error RemoveAll(path string) error List(path string, recursive ...bool) ([]FileInfo, error) Search(match string) ([]FileInfo, error) Name() string SetName(name string) Type() string }
type FileInfo ¶
type FileInfo struct {
// contains filtered or unexported fields
}
func NewFileInfo ¶
type StorageSettings ¶
type StorageSettings string
Click to show internal directories.
Click to hide internal directories.