'How to get the url of a downloaded file

I have done a lot of research but I can find a way to get the url of a file already downloaded.. I want to get the urls to make a program to sort my files by them. If anyone have an idea to get that or to make that in an other way im glade to hear it ! Sorry for my bad English !



Solution 1:[1]

I doubt that it is in general possible, because data like these is not stored in file's metadata. If your script makes the download, you can save the link in code and then use it to sort your files, but if files are downloaded by the user it is impossible.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Matvey_coder3