davidblewett/Flexget — comment on commit 7bedef8b6ee756efafaf1e58e9ba31ac81b35087
File: flexget/plugins/output/download.py line 258
By davidblewett:

We're relying on mkdtemp to be unique inside the top-level `temp` directory. From the docs: "Creates a temporary directory in the most secure manner possible. There are no race conditions in the directory’s creation." The filename inside the directory is really inconsequential since a directory will be created per file downloaded. Later on, the file will be moved to it's final location using the path cleansing utilities.