Documentation ¶
Index ¶
- func NewLocalDrive(path string, config *wfs.DriveConfig) (wfs.Drive, error)
- type LocalDrive
- func (l *LocalDrive) Comply(f wfs.FileID, operation int) bool
- func (l *LocalDrive) Copy(source, target wfs.FileID, name string, isFolder bool) (wfs.FileID, error)
- func (l *LocalDrive) Exists(f wfs.FileID, name string) bool
- func (l *LocalDrive) GetParent(f wfs.FileID) wfs.FileID
- func (l *LocalDrive) Info(f wfs.FileID) (wfs.FileInfo, error)
- func (l *LocalDrive) List(f wfs.FileID) ([]wfs.FileInfo, error)
- func (l *LocalDrive) Make(f wfs.FileID, name string, isFolder bool) (wfs.FileID, error)
- func (l *LocalDrive) Move(source, target wfs.FileID, name string, isFolder bool) (wfs.FileID, error)
- func (l *LocalDrive) Read(f wfs.FileID) (io.ReadSeeker, error)
- func (l *LocalDrive) Remove(f wfs.FileID) error
- func (l *LocalDrive) Search(f wfs.FileID, search string) ([]wfs.FileInfo, error)
- func (l *LocalDrive) Stats() (uint64, uint64, error)
- func (l *LocalDrive) ToFileID(id string) wfs.FileID
- func (l *LocalDrive) Write(f wfs.FileID, data io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLocalDrive ¶
Types ¶
type LocalDrive ¶
type LocalDrive struct {
// contains filtered or unexported fields
}
func (*LocalDrive) Move ¶
func (l *LocalDrive) Move(source, target wfs.FileID, name string, isFolder bool) (wfs.FileID, error)
Move renames(moves) a file or a folder
func (*LocalDrive) Read ¶
func (l *LocalDrive) Read(f wfs.FileID) (io.ReadSeeker, error)
Click to show internal directories.
Click to hide internal directories.