Skip to content

Commit

Permalink
automatically create temp dir
Browse files Browse the repository at this point in the history
I don't know how I could have missed this until now...
  • Loading branch information
schorschii committed Aug 1, 2021
1 parent d80e4cb commit ecb4843
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions companion2.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ def main():
log("[MAIN] Error: no valid '"+PROTOCOL_SCHEME+"' scheme parameter given.")
exit(1)

# create temporary directory
os.makedirs(DOWNLOAD_DIR, exist_ok=True)

# parse given companion URL
log("[HANDLE URL] "+urlToHandle)
protocolPayload = unquote(urlToHandle).replace(PROTOCOL_SCHEME, "")
Expand Down

0 comments on commit ecb4843

Please sign in to comment.