Skip to content
Snippets Groups Projects
Forked from Xfce / thunar
5038 commits behind the upstream repository.
  • Yongha Hwang's avatar
    7344cd3d
    Use *.partial~ as an intermediate file for copy · 7344cd3d
    Yongha Hwang authored
    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()
    7344cd3d
    History
    Use *.partial~ as an intermediate file for copy
    Yongha Hwang authored
    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()
configure.ac.in 10.09 KiB