Asynchronously deletes file
.
If file
is a directory, its contents are deleted recursively before file
itself is deleted. The recursive
delete operation will stop on the first error.
If cancellable
is not null
, then the operation can be cancelled by triggering the cancellable object before the
operation finishes.
When the operation is finished, callback
will be called. You can then call file_recursive_delete.end
to get the result of the operation.
file |
a File to delete |
io_priority |
the I/O priority of the request |
cancellable |
optional Cancellable object, or |
callback |
a TaskReadyCallback to call when the request is satisfied |
user_data |
data to pass to the callback function |