ruud was bulling me ;)
This commit is contained in:
@@ -113,17 +113,11 @@ config = [{
|
||||
'description': 'Replace all the spaces with a character. Example: ".", "-" (without quotes). Leave empty to use spaces.',
|
||||
},
|
||||
{
|
||||
'name': 'hardlink',
|
||||
'type': 'bool',
|
||||
'description': 'Use <a href="http://en.wikipedia.org/wiki/Hard_link">hard links</a> instead of moving files, ideal for Torrent users. NOTE: From location and to location needs to be on the same drive/partition.',
|
||||
'default': False,
|
||||
'advanced': True,
|
||||
},
|
||||
{
|
||||
'name': 'symlink',
|
||||
'type': 'bool',
|
||||
'description': 'Use <a href="http://en.wikipedia.org/wiki/Sym_link">sym links</a> instead of moving files.',
|
||||
'default': False,
|
||||
'name': 'links',
|
||||
'default': '0',
|
||||
'type': 'dropdown',
|
||||
'values': [('Disable', 0), ('Hard link', 'hard'), ('Sym link', 'sym')],
|
||||
'description': 'Use <a href="http://en.wikipedia.org/wiki/Hard_link">hard links</a> or <a href="http://en.wikipedia.org/wiki/Sym_link">sym links</a> instead of moving files, ideal for Torrent users.',
|
||||
'advanced': True,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -524,9 +524,9 @@ class Renamer(Plugin):
|
||||
def moveFile(self, old, dest):
|
||||
dest = ss(dest)
|
||||
try:
|
||||
if self.conf('hardlink') and not self.conf('symlink'):
|
||||
if self.conf('link') == 'hard':
|
||||
linktastic.link(old, dest)
|
||||
elif self.conf('symlink') and not self.conf('hardlink'):
|
||||
elif self.conf('link') == 'sym':
|
||||
linktastic.symlink(old, dest)
|
||||
else:
|
||||
shutil.move(old, dest)
|
||||
|
||||
Reference in New Issue
Block a user