Documentation ¶
Index ¶
- type Driver
- func (driver *Driver) Append(path string, content any) error
- func (driver *Driver) Close(connection *ftp.ServerConn)
- func (driver *Driver) CopyDir(src, dest string) error
- func (driver *Driver) CopyFile(src, dest string) error
- func (driver *Driver) GetMetadata(path string) (*lib.Metadata, error)
- func (driver *Driver) Init(input string) error
- func (driver *Driver) IsDir(path string) bool
- func (driver *Driver) IsDirExists(path string) bool
- func (driver *Driver) IsFileExists(path string) bool
- func (driver *Driver) List(path string, recursive ...bool) ([]lib.FileInfo, error)
- func (driver *Driver) Mkdir(path string, perm ...fs.FileMode) error
- func (driver *Driver) MkdirAll(path string, perm ...fs.FileMode) error
- func (driver *Driver) Name() string
- func (driver *Driver) ReadAll(path string) ([]byte, error)
- func (driver *Driver) ReadAllString(path string) (string, error)
- func (driver *Driver) Remove(path string) error
- func (driver *Driver) RemoveAll(path string) error
- func (driver *Driver) Search(match string) ([]lib.FileInfo, error)
- func (driver *Driver) SetMetadata(path string, meta lib.Metadata) error
- func (driver *Driver) SetName(name string)
- func (driver *Driver) SetWorkingDir(path string) error
- func (driver *Driver) Stat(path string) (lib.FileInfo, error)
- func (driver *Driver) Touch(path string) error
- func (driver *Driver) Type() string
- func (driver *Driver) WorkingDir() string
- func (driver *Driver) Write(path string, content any) error
- func (driver *Driver) WriteJson(path string, content any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct { Dir string // contains filtered or unexported fields }
func (*Driver) Close ¶
func (driver *Driver) Close(connection *ftp.ServerConn)
func (*Driver) IsDirExists ¶
func (*Driver) IsFileExists ¶
func (*Driver) SetMetadata ¶
func (*Driver) SetWorkingDir ¶
func (*Driver) WorkingDir ¶
Click to show internal directories.
Click to hide internal directories.