file_recursive_delete_sync


Description:


[ Version ( since = "3.6" ) ]
public bool file_recursive_delete_sync (File file, Cancellable? cancellable = null) throws Error

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 from another thread. If the operation was cancelled, the error CANCELLED will be returned.

Parameters:

file

a File to delete

cancellable

optional Cancellable object, or null

Returns:

true if the file was deleted, false otherwise


Namespace: E