Luna::VFS::DriverDesc::on_copy_file

RV(* on_copy_file) (void *driver_data, void *from_mount_data, void *to_mount_data, const Path &from_path, const Path &to_path, FileCopyFlag flags)

Called when VFS::copy_file is called on two files that both belong to devices of this driver.

Parameters

  • in driver_data

    The user-provided driver data.

  • in from_mount_data

    The mount data returned by on_mount for the device that the file is copied from.

  • in to_mount_data

    The mount data returned by on_mount for the device that the file is copied to.

  • in from_path

    The path of the file to copy from relative to the mount root path.

  • in to_path

    The path of the file to copy to relative to the mount root path.

  • in flags

    The file copy flags.