destination
The destination of the rename operation.
Declaration
var destination: es_event_rename_t.__Unnamed_union_destinationDiscussion
To parse this union, check the destination_type to determine whether the rename event’s destination file already exists:
If the destination_type is ES_DESTINATION_TYPE_EXISTING_FILE, the union contains an es_file_t member called
existing_file.If the destination_type is ES_DESTINATION_TYPE_NEW_PATH, the union contains a
structcallednew_path, indicating the file’s proposed destination. The structure consists of an es_file_t calleddirfor the parent directory, and an es_string_token_t calledfilename.