Class Trashcan

Implementation of ITrashcan. This class may have additional platform-dependent functions and different constructors. This class is currently available only for Windows and Freedesktop (GNU/Linux, FreeBSD, etc.) platforms.

class Trashcan
  : ITrashcan ;

Constructors

NameDescription
this

Properties

NameTypeDescription
displayName[get] stringThe name of trashcan (possibly localized). Currently implemented only for Windows and KDE, and returns empty string on other platforms.
recycleBin[get] trashcan.Trashcan.IShellFolder2Windows-only function to get IShellFolder2 object associated with recycle bin.

Methods

NameDescription
byItem Lazily list items stored in trashcan.
erase Erase item from trashcan.
restore Restore item to its original location.
erase Erase item from trashcan.
restore Restore item to its original location.