Sends this to the "Trashcan", if possible.
This is similar to deleting it, but the user can recover it before emptying the trashcan. Not all file systems support trashing, so this call can return the g_io_error_not_supported error.
If cancellable
is not null, then the operation can be cancelled by triggering
the cancellable object from another thread. If the operation was cancelled, the error
g_io_error_cancelled will be returned.
this |
File to send to trash |
cancellable |
optional Cancellable object, null to ignore |
true on successful trash, false otherwise. |