add copy and move to file actions

This commit is contained in:
Joel Kåberg committed 2013-04-05 14:21:15 +02:00
1 parent 47ddf31f76
commit 3c2a00b17b
2 files changed
+9 -6

No files matched your search

+4 -2
View File
@@ -524,10 +524,12 @@ class Renamer(Plugin):
def moveFile(self, old, dest):
dest = ss(dest)
try:
if self.conf('link') == 'hard':
if self.conf('file_action') == 'hardlink':
linktastic.link(old, dest)
elif self.conf('link') == 'sym':
elif self.conf('file_action') == 'symlink':
linktastic.symlink(old, dest)
elif self.conf('file_action') == 'copy':
shutil.copy(old, dest)
else:
shutil.move(old, dest)