#[repr(C)]pub struct TransformFilePathExportReturns {
pub transformed_file_name: *mut c_char,
pub channel_path: *mut c_char,
pub log_file_action: c_int,
}Expand description
Structure to rewrite the file transfer file name and path in the \ref ServerLibFunctions.onTransformFilePath callback. The lengths are limited as described in the original parameter. Important: Which values of the struct can be modified is defined by the action value of the original parameter.
Fields§
§transformed_file_name: *mut c_charpointer to target file name. Fill the memory pointed to with an utf8 encoded c string containing the new file name. Limited to original->transformedFileNameMaxSize bytes.
channel_path: *mut c_charpointer to memory for new path. Fill the memory pointed to with an utf8 encoded c string containing the new path. Limited to original->channelPathMaxSize bytes.
log_file_action: c_intboolean (1/0). Whether to log this file transfer to the log. Action is not logged regardless of this value if the servers \ref VIRTUALSERVER_LOG_FILETRANSFER property is 0.