Reputation
Top tag
Next privilege 10 Rep.
Answer protected questions
Badges
1
Newest
 Student
Impact
~776 people reached

  • 0 posts edited
  • 0 helpful flags
  • 0 votes cast
Jun
26
awarded  Student
Apr
15
comment Does 7zip extract to a temporary file and then rename the temporary to the actual target?
I did the same thing but was unable to determine if the original filename was truncated and growing a buffer at a time or whether it was unpacked to a temp and then moved/renamed to the target. The latter seems like better programming practice - in the event the unpack fails at least it wouldn't have destroyed a perfectly good file.
Apr
15
comment Does 7zip extract to a temporary file and then rename the temporary to the actual target?
I was hunting throughout the 7zip docs and elsewhere trying to see if it was the practice of the program to make a temp then rename to target. Even if it does it today, it may not tomorrow if they make code changes. I'm going through the source code now.
Apr
14
asked Does 7zip extract to a temporary file and then rename the temporary to the actual target?