Skip to content

Commit

Permalink
test for absolute path. #1671
Browse files Browse the repository at this point in the history
  • Loading branch information
clinton-hall committed Dec 24, 2019
1 parent 2a5afd2 commit b79c959
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/utils/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def parse_synods(args):
input_directory = task['additional']['detail']['destination']
except:
logger.error('unable to find download details in Synology DS')
#Syno paths appear to be relative. Let's test to see if the returned path exists, and if not append to /volume1/
if not os.path.isdir(input_directory) and os.path.isdir(os.path.join('/volume1/', input_directory)):
input_directory = os.path.join('/volume1/', input_directory)
return input_directory, input_name, input_category, input_hash, input_id


Expand Down

0 comments on commit b79c959

Please sign in to comment.