martymac / fpart

Sort files and pack them into partitions
https://www.fpart.org/
BSD 2-Clause "Simplified" License
231 stars 39 forks source link

List of files transferred & their sizes? #28

Closed gamename closed 3 years ago

gamename commented 3 years ago

Hi Ganael,

A customer of ours has asked if there is any way to get a log from fpart/fpsync that will show what files were transferred and their sizes. Is that possible?

Thank you, sir. -T

martymac commented 3 years ago

Hello Tennis,

You won't be able to get a direct listing of files already transferred (fpsync does not provide that ability, file lists can be HUGE), but you can guess it by scripting something that compares :

/tmp/fpsync/queue/<job id>/<part number> (remaining partitions to transfer)
/tmp/fpsync/work/<job id>/<part number> (partitions already transferred)

while getting file lists from :

/tmp/fpsync/parts/<job id>/<part number>

Regarding transferred data size, this is probably related to issue #24. I've have not had time to look at it yet (I am quite busy, any contribution is welcome :p).

Best regards,

Ganael.

gamename commented 3 years ago

Thanks Ganael. I'll have a look. -T