6.18 GFileProgressCallback

Callback: GFileProgressCallback

A procedure given for it is called as (procedure current-num-bytes total-num-bytes). If the function that it is given to has no user data for it, it is also passed data, last.

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

Passed: a 64-bit integer.

the current number of bytes in the operation.

total-num-bytes

Passed: a 64-bit integer.

the total number of bytes in the operation.

data

Not passed: it is the user data that guile-gi supplied.

user data passed to the callback.