file_recursive_delete


Description:


[ Version ( since = "3.6" ) ]
public async bool file_recursive_delete (File file, int io_priority, Cancellable? cancellable) throws Error

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.

Parameters:

file

a File to delete

io_priority

the I/O priority of the request

cancellable

optional Cancellable object, or null

callback

a TaskReadyCallback to call when the request is satisfied

user_data

data to pass to the callback function


Namespace: E



2022 vala-language.org