Hi. I am using download to download flies like this:
await download(url, destination)
I am aware that one can specify filename by passing extra options, however, in my situation I do not know beforehand what is the name of the file should be (I have no metadata besides url, name is not always inferrable from url).
Is there a reliable way to get filename that is used by download once download has been completed?
Hi. I am using
download
to download flies like this:I am aware that one can specify filename by passing extra options, however, in my situation I do not know beforehand what is the name of the file should be (I have no metadata besides url, name is not always inferrable from url).
Is there a reliable way to get filename that is used by
download
once download has been completed?