• Karel Koci's avatar
    download: add possibility to download to temporally file · ed17313f
    Karel Koci authored
    This uses standard function mkstemp to generate random file name,
    anything else is same as in case of download_file.
    
    This also changes behaviour of download_file so that it truncates file.
    It makes much more sense because otherwise we would append data. If we
    ever need append data then it would make sense to have dedicated option
    for it.
    ed17313f
download.c 13.3 KB