mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
Merged working create_destination into dev
This commit is contained in:
commit
24b24e140e
1 changed files with 11 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
import logging
|
import logging
|
||||||
import logging.config
|
import logging.config
|
||||||
import os.path
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,6 +23,16 @@ def create_destination(outputDestination):
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
|
|
||||||
|
def create_destination(outputDestination):
|
||||||
|
if not os.path.exists(outputDestination):
|
||||||
|
try:
|
||||||
|
Logger.info("CREATE DESTINATION: Creating destination folder: %s", outputDestination)
|
||||||
|
os.makedirs(outputDestination)
|
||||||
|
except Exception, e:
|
||||||
|
Logger.error("CREATE DESTINATION: Not possible to create destination folder: %s. Exiting", e)
|
||||||
|
sys.exit(-1)
|
||||||
|
|
||||||
|
|
||||||
def parse_other(args):
|
def parse_other(args):
|
||||||
return os.path.normpath(sys.argv[1]), '', '', ''
|
return os.path.normpath(sys.argv[1]), '', '', ''
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue