#2703: Renaming a file in the "Files" tab causes it to clobber existing files
instead of checking.
----------------------------+-------------------
Reporter: arielCo | Owner:
Type: bug | Status: new
Priority: major | Milestone: 1.3.x
Component: other/unknown | Version: 1.3.6
Resolution: | Keywords:
----------------------------+-------------------
Comment (by Cas):
Although doesn't help with specifically with `rename_files`, libtorrent
1.0 `move_storage` method now has flags to check if files exist in target
location:
{{{
The flags argument determines the behavior of the copying/moving of the
files in the torrent. see move_flags_t.
always_replace_files = 0
fail_if_exist = 1
dont_replace = 2
always_replace_files (default) replaces any file that exist in both the
source directory and the target directory.
fail_if_exist first check to see that none of the copy operations would
cause an overwrite. If it would, it will fail. Otherwise it will proceed
as if it was in always_replace_files mode.
dont_replace always takes the existing file in the target directory, if
there is one. The source files will still be removed in that case.
}}}
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2703#comment:7>
Deluge <http://deluge-torrent.org/>
Deluge Project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/d/optout.