Gio.FileProgressCallback

function onFileProgressCallback(current_num_bytes: Number(gint64), total_num_bytes: Number(gint64)): void {
}
  

When doing file operations that may take a while, such as moving a file or copying a file, a progress callback is used to pass how far along that operation is to the application.

current_num_bytes

the current number of bytes in the operation.

total_num_bytes

the total number of bytes in the operation.