legacy

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(cfg trash.Config) (trash.Storage, error)

NewStorage creates a new legacy storage instance

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage implements the trash.Storage interface for legacy (.gomi) storage

func (*Storage) Info

func (s *Storage) Info() *trash.StorageInfo

func (*Storage) List

func (s *Storage) List() ([]*trash.File, error)

func (*Storage) Put

func (s *Storage) Put(src string) error

func (*Storage) Remove

func (s *Storage) Remove(file *trash.File) error

func (*Storage) Restore

func (s *Storage) Restore(file *trash.File, dst string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL