mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
added option to move files.
This commit is contained in:
parent
b8e03b1b9d
commit
1ee2b83709
2 changed files with 4 additions and 1 deletions
|
@ -176,6 +176,9 @@ def copy_link(filePath, targetDirectory, useLink, outputDestination):
|
|||
Logger.info("COPYLINK: Something went wrong in linktastic.link, copying instead")
|
||||
Logger.debug("COPYLINK: Copying %s to %s", filePath, targetDirectory)
|
||||
shutil.copy(filePath, targetDirectory)
|
||||
elif useLink == "move":
|
||||
Logger.debug("Moving %s to %s", filePath, targetDirectory)
|
||||
shutil.move(filePath, targetDirectory)
|
||||
else:
|
||||
Logger.debug("Copying %s to %s", filePath, targetDirectory)
|
||||
shutil.copy(filePath, targetDirectory)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue