class documentation

class TrashHelper(object): (source)

View In Hierarchy

Undocumented

Method trash No summary
def trash(self, file): (source)
Trash a file or folder by moving it to the system trashcan if supported. Depends on the gio library.
Parameters
filea LocalFile object
Returns
True when successful
Raises
TrashNotSupportedErrorif trashing is not supported or failed.
TrashCancelledErrorif trashing was cancelled by the user