Versions in this module Expand all Collapse all v2 v2.0.0 Oct 9, 2023 Changes in this version + const TimeFormat + var ErrDirectoryNotFound = errors.New("Directory not found") + var ErrDriveNotMounted = errors.New("Drive not mounted") + var ErrFileNotFound = errors.New("File not found") + type File struct + Name string + Size uint64 + Timestamp localTime + Type string + func (f *File) Date() time.Time + func (f *File) IsDir() bool + func (f *File) IsFile() bool + type Fileinfo struct + Err uint64 + Filament []float64 + FirstLayerHeight float64 + GeneratedBy string + Height float64 + LayerHeight float64 + PrintTime uint64 + Size uint64 + Timestamp localTime + func (f *Fileinfo) LastModified() time.Time + type Filelist struct + Dir string + Err uint64 + Files []File + Next uint64 + Subdirs []*Filelist + func (f *Filelist) Contains(path string) bool + type RRFFileManager struct + func New(domain string, port uint64, debug bool) *RRFFileManager + func (r *RRFFileManager) Connect(ctx context.Context, password string) error + func (r *RRFFileManager) Delete(ctx context.Context, path string) error + func (r *RRFFileManager) Download(ctx context.Context, path string) ([]byte, *time.Duration, error) + func (r *RRFFileManager) Fileinfo(ctx context.Context, path string) (*Fileinfo, error) + func (r *RRFFileManager) Filelist(ctx context.Context, dir string, recursive bool) (*Filelist, error) + func (r *RRFFileManager) Mkdir(ctx context.Context, path string) error + func (r *RRFFileManager) Move(ctx context.Context, oldpath, newpath string) error + func (r *RRFFileManager) Upload(ctx context.Context, path string, content io.Reader) (*time.Duration, error) Other modules containing this package github.com/wilriker/librfm