Skip to content
Snippets Groups Projects
Commit 7344cd3d authored by Yongha Hwang's avatar Yongha Hwang
Browse files

Use *.partial~ as an intermediate file for copy

MR !130

To resume copy after an interrupted attempt, a user would retry the same process again. To save time, one would skip all duplicate files. But unfortunately, it is almost guaranteed to have a single fragmented file that has a same name as an original file. This causes an incomplete copy, and normally the only way to solve this is to give up this method and remove all the files that are copied. This MR provides a way to do this properly by copying individual files into an intermediate file that is named *.partial~. Only after the file is properly transfered, its name is changed to its original name. By this method, fragmented file is guaranteed to have a separate name, so a user can resume copy without a problem.

Changes:

* thunar_g_file_copy()
* ThunarUsePartialMode
* transform_enum_value_to_index()
parent 40d32865
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment