wastebasket_windows

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrashedFileInfo

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

func NewTrashedFileInfo

func NewTrashedFileInfo(
	fileSize uint64,
	infoPath, originalPath string, deletionDate time.Time,
	restore func(force bool) error,
	deleteFunc func() error,
) *TrashedFileInfo

func (TrashedFileInfo) Delete

func (t TrashedFileInfo) Delete() error

func (TrashedFileInfo) DeletionDate

func (t TrashedFileInfo) DeletionDate() time.Time

func (TrashedFileInfo) FileSize

func (t TrashedFileInfo) FileSize() uint64

func (TrashedFileInfo) OriginalPath

func (t TrashedFileInfo) OriginalPath() string

func (TrashedFileInfo) Restore

func (t TrashedFileInfo) Restore(force bool) error

func (TrashedFileInfo) UniqueIdentifier

func (t TrashedFileInfo) UniqueIdentifier() string

Jump to

Keyboard shortcuts

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