mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-17 07:38:42 +00:00
Fix do not create torrentfiles folder unless 'copy_torrent_file' is True
This commit is contained in:
parent
2102c0b910
commit
f26f9c6331
1 changed files with 5 additions and 5 deletions
|
@ -711,11 +711,11 @@ class Core(
|
|||
self.config_value_changed(key, value)
|
||||
|
||||
def _on_set_torrentfiles_location(self, key, value):
|
||||
# First try to create the new directory
|
||||
try:
|
||||
os.makedirs(value)
|
||||
except Exception, e:
|
||||
log.debug("Unable to make directory: %s", e)
|
||||
if self.config["copy_torrent_file"]:
|
||||
try:
|
||||
os.makedirs(value)
|
||||
except Exception, e:
|
||||
log.debug("Unable to make directory: %s", e)
|
||||
|
||||
def _on_set_state_location(self, key, value):
|
||||
if not os.access(value, os.F_OK):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue