I think this is due to a subtly misleading file format variation. If you look at ‘export-paths’, it does:
while there are files to write write-long-long 1 export-path file write-long-long 0 ‘restore-file-set’ does the opposite, which is to read that long-long to determine whether there’s data coming up, and then to call ‘restore-file’. HTH! Ludo’.