Skip to content

http: Return uncompressed total size from `file_info_from_message`

Lucas Chollet requested to merge CHOLLET_L/gvfs:total_bytes into master

Currently, using FileProgressCallback is quite confusing as current_num_bytes is in uncompressed bytes unlike total_num_bytes which is in compressed bytes.

In order to solve this issue, our first request to query information set the compression flag to identity (none). Then we store the uncompressed file size and retrieve it for every query_info_on_read call.

Closes #195 (closed)


I'm not familiar with neither gvfs, glib nor C in general.

I've tried to follow guidelines though.

So sorry if I made dumb mistakes, but don't hesitate to be picky if I can learn from it!

Merge request reports