add copy and move to file actions
This commit is contained in:
1 parent
47ddf31f76
commit
3c2a00b17b
2 files changed
+9
-6
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user